ENUM

ControllerElementType

Stone-defined semantic types for Controller Elements.Specifies the semantics of a specific element on a controller layout.

  • enum ControllerElementType {
  • # This element does not exist. Intended for internal use for consumers
  • NULL
  • # A button, usually with a switch or dome that can be depressed on the controller,
  • # exclusing directional buttons
  • BUTTON
  • # A directional button or D-pad button representing one of 8 cardinal directions
  • DIRECTIONAL
  • # An axis that increases in value on the number line.
  • # For example, analog stick movement towards the right, or towards the forward
  • # direction.
  • AXIS_POSITIVE
  • # An axis that decreases in value on the number line.
  • # For example, analog stick movement towards the left, or towards the backwards
  • # direction.
  • AXIS_NEGATIVE
  • # An analog shoulder trigger, able to be depressed smoothly with varying degrees
  • # of pressure
  • # from undepressed (0%) to fully depressed (100%), usually marked L2 or R2
  • TRIGGER
  • # A rumble motor that shakes the controller
  • RUMBLE
  • # A keyboard of an unspecified amount of keys. Intended for special-case keyboard
  • # handling for consumers
  • KEYBOARD
  • # A pointing device that can express position in the form of a contiguous set of
  • # coordinates on a multi-dimensional cartesian plane.
  • # Examples include a mouse, or the Wii Remote IR for 2D.
  • POINTER
  • # A pointer axis that increases in value on the number line, where the pointer
  • # device itself is
  • # not limited to axis-based representation. For example, continous right mouse
  • # movement.
  • POINTER_AXIS_POSITIVE
  • # A pointer axis that increases in value on the number line, where the pointer
  • # device itself
  • # is not limited to axis-based representation. For example, continous left mouse
  • # movement.
  • POINTER_AXIS_NEGATIVE
  • # A touch sensitive surface of unspecified size and precision,
  • # where input can be expressed as a non-contiguous matrix of coordinates on a
  • # 2 dimentional cartesian plane. However, most touchscreens in video game
  • # controllers
  • # are only concerned with a single matrix due to the lack of multi-touch support.
  • TOUCHSCREEN
  • # A 3 axis rotation gyroscope of unspecified precision,
  • # where input can be expressed as a vector of 3 coordinates X, Y, and Z
  • GYROSCOPE
  • }