|
|
SDK Documentation |
Copyright © 1997-2001 |
February 23, 2001 |
This document provides an overview of the sample code included with the NUON SDK that demonstrates how to use game controllers.
The table below shows the folder name of each sample and a brief description of what is demonstrated. All folder names are relative to the \VMLABS\SAMPLE directory.
Folder Name |
Description |
Game-Controllers\Controller-Dump | This is a diagnostic program that dumps all of the data from each
available controller slot.
Slot 0 corresponds to a player's Infrared Remote (IRR) control. Slots 1 is the first controller found connected to the first controller port. Slots 2-4 are available when a 4-player adapter is connected. Slots 5-9 are used for the second controller port. In addition to basic button and analog controller data, the program also displays whatever additional information is available from the IRR control. |
Game-Controllers\deadzone | This program demonstrates how to implement a center dead-zone, where small analog values are discarded. This required because most analog joysticks (or other analog controllers) do not provide an exact center position of ZERO in either axis. |
All of the sample code in the NUON may be found in the \VMLABS\SAMPLE directory. Inside that directory are a number of additional directories which contain various sample programs. Each sample demonstrates a particular concept, such as how to use a certain NUON library, or how to use the SDK tools in a particular way.
The majority of the samples are something you can compile with the tools and execute on your NUON development system. A few samples are incomplete in some way and are provided merely so you can examine the source code.