ISKernel:axis (Object Type)

From Lavish Software Wiki
Jump to navigation Jump to search


Object Type Vitals
Defined By Inner Space
Inherits none
Reduces To same as Name
Variable Object Type none
Uses Sub-Types no
C/C++ Type unsigned int


  • string Name: Name of the axis
  • string Device: Name of the input device hosting this axis
  • uint ID: ID number of the axis (independent of buttons or d-pads)
  • float Position: Value between 0 and 1 indicating the axis position. Generally 0 is to the left or downward, and 1 is to the right or upward. Some axes are a bit more strange, such as Xbox 360 conroller triggers, where the value is the average position of the two triggers -- 0 is left trigger pulled, 1 is right trigger pulled, and 0.5 indicates both triggers are at rest, or both pulled. The precision of this position is entirely based on the device and its driver (e.g. the values will not just be 0, 0.5, or 1, there might be thousands of possible values).



See Also