Previous Book Contents Book Index Next

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


Built-in Element Labels

InputSprocket provides constants to define labels for controls common to most games. You can use these labels to specify an element's intended use. You can also define your own labels as needed. Element label constants are used in ISpElementInfo and structure and by the ISpElementList_ExtractByLabel function.

enum {
   kISpElementLabel_None = 'none',

   kISpElementLabel_XAxis = 'xaxi',
   kISpElementLabel_YAxis = 'yaxi',
   kISpElementLabel_ZAxis = 'zaxi',

   kISpElementLabel_Rx = 'rxax',
   kISpElementLabel_Ry = 'ryax',
   kISpElementLabel_Rz = 'rzax',

   kISpElementLabel_Gas = 'gasp',
   kISpElementLabel_Brake ='brak',
   kISpElementLabel_Clutch = 'cltc',

   kISpElementLabel_Throttle = 'thrt',
   kISpElementLabel_Trim = 'trim',
   kISpElementLabel_POVHat = 'povh',
   kISpElementLabel_PadMove = 'move',

   kISpElementLabel_Fire = 'fire',
   kISpElementLabel_Start = 'strt',
   kISpElementLabel_Select = 'optn'
};
Constant descriptions

kISpElementLabel_None
A generic label; the element can be used as anything.
kISpElementLabel_XAxis
Suggest using the element as an x-axis .
kISpElementLabel_YAxis
Suggest using as the element a y-axis.
kISpElementLabel_ZAxis
Suggest using the element as a z-axis.
kISpElementLabel_Rx
Suggest using the element for rotation around the x-axis.
kISpElementLabel_Ry
Suggest using the element for rotation around the y-axis.
kISpElementLabel_Rz
Suggest using the element for rotation around the z-axis.
kISpElementLabel_Gas
Suggest using the element as a gas pedal.
kISpElementLabel_Brake
Suggest using the element as a brake.
kISpElementLabel_Clutch
Suggest using the element as a clutch.
kISpElementLabel_Throttle
Suggest using the element as a throttle.
kISpElementLabel_Trim
Suggest using the element as a trim control.
kISpElementLabel_POVHat
Suggest using the element as a point-of-view hat.
kISpElementLabel_PadMove
Suggest using the element for directional pad movement.
kISpElementLabel_Fire
Suggest using the element as a firing button.
kISpElementLabel_Start
Suggest using the element as a start button.
kISpElementLabel_Select
Suggest using the element as an option or select button.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996