ISKernel:axis (Object Type)

From Lavish Software Wiki
Revision as of 04:55, 14 May 2006 by Lax (talk | contribs)
Jump to navigation Jump to search

Description

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

Members

  • string Name: Name of the button
  • string Device: Name of the input device hosting this button
  • uint ID: ID number of the button -- 255 and under are assigned by Windows, 256 and above are generated by Inner Space for non-keyboard buttons
  • 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).

Methods

none

See Also