Previous Book Contents Book Index Next

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


Button Configuration Information Structure

The button configuration information structure provides information used during configuration and in interpreting button element data. For each element of kind kISpElementKind_Button, the device driver fills out a button configuration information structure, which is stored by InputSprocket. A button configuration information structure is defined by the ISpButtonConfigurationInfo data type.

typedef struct {
   UInt32         id;
} ISpButtonConfigurationInfo;
Field Description
id
Use this ID to indicate which button element to assign first during configuration if the device has more than one button element. A lower value indicates priority. For example, make the value of id for an easy to reach button 1 and make it 6 for a button in the back so that the easy-to-reach button gets assigned first. A value of 0 means use the button elements in any order.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996