Previous Book Contents Book Index Next

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


Built-in Device Categories

These constants identify the general category of devices the input device belongs to. Use the constants in the theDeviceClass field of the ISpDeviceDefinition data structure.

enum {
   kIspDeviceClass_SpeechRecognition ='talk',
   kISpDeviceClass_Mouse =    'mous',
   kISpDeviceClass_Keyboard = 'keyd',
   kISpDeviceClass_Joystick = 'joys',
   kISpDeviceClass_Wheel =    'whel',
   kISpDeviceClass_Pedals =   'pedl',
   kISpDeviceClass_Levers =   'levr'
};
Constant descriptions

kIspDeviceClass_SpeechRecognition
The device is primarily a speech-recognition device.
kISpDeviceClass_Mouse
The device is a one-button mouse.
kISpDeviceClass_Keyboard
The device is a keyboard.
kISpDeviceClass_Joystick
The device is a joystick.
kISpDeviceClass_Wheel
The device is primarily a wheel.
kISpDeviceClass_Pedals
The device is primarily a pedal.
kISpDeviceClass_Levers
The device is primarily a lever--for example, a device built around a thrust lever.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996