Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Enumeration of valid GameInput sensor types.
Syntax
enum GameInputSensorsKind
{
GameInputSensorsNone = 0x00000000,
GameInputSensorsAccelerometer = 0x00000001,
GameInputSensorsGyrometer = 0x00000002,
GameInputSensorsCompass = 0x00000004,
GameInputSensorsOrientation = 0x00000008
};
Constants
| Constant | Description |
|---|---|
| GameInputSensorsNone | Indicates no sensors. |
| GameInputSensorsAccelerometer | Indicates the presence of accelerometer data, which represents linear acceleration |
| (including gravity) in g-force with respect to the x, y, and z axes. | |
| GameInputSensorsGyrometer | Indicates the presence of gyrometer data, which represents angular velocity in radians |
| per second with respect to the x, y, and z axes. | |
| GameInputSensorsCompass | Indicates the presence of compass data, which represents a heading in degrees with |
| respect to magnetic north. | |
| GameInputSensorsOrientation | Indicates the presence of orientation data, in the form of a quaternion describing the |
| device's orientation in space. |
Remarks
These flag values are used in the GameInputSensorsInfo structure (to determine which sensors are present).
Requirements
Header: GameInput.h
Supported platforms: Windows
See also
Input API Overview GameInput GameInputSensorsInfo GameInputDeviceInfo GameInputSensorsState