Previous Book Contents Book Index Next

Inside Macintosh: Apple Game Sprockets Guide /
Chapter 3 - InputSprocket / InputSprocket Reference
Data Structures


Axis Configuration Information Structure

The axis configuration information structure provides information used during configuration and in interpreting axis element data. For each element of kind kISpElementKind_Axis, the device driver fills out an axis configuration information structure, which is stored by InputSprocket. An axis configuration information structure is defined by the ISpAxisConfigurationInfo data type.

typedef struct {
   Boolean        SymetricAxis; 
} ISpAxisConfigurationInfo;
Field Description
SymetricAxis
This value is true if the axis has a meaningful center--for example, the axis of a joystick. In this case, 0 or idle falls at the kISpAxisMiddle position. This value is false if the axis has no meaningful center--for example, the axis of a brake or gas pedal.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996