Built-in Element Kinds
Use these constants to specify the kind of data an element produces and to identify virtual elements. Element kind constants are used in theISpElementInfo
structure and by theISpElementList_ExtractByKind
function.
enum { kISpElementKind_Button = 'butn', kISpElementKind_DPad = 'dpad', kISpElementKind_Axis = 'axis', kISpElementKind_Movement = 'move' kISpElementKind_Virtual = 'virt' };Constant descriptions
- kISpElementKind_Button
- Button data.
- kISpElementKind_DPad
- Directional pad data.
- kISpElementKind_Axis
- Axis data, either with or without a meaningful center position (as determined by the
ISpAxisConfigurationInfo
data structure).- kISpElementKind_Movement
- Movement data that is given both as x-y axis data and directional pad data, allowing the game to use whichever is suitable.
kISpElementKind_Virtual
- A virtual element created by the
ISpElement_NewVirtual
function. Those created by theISpElement_NewVirtualFromNeeds
function have the element kind specified by the need structure they correspond to.