Facebook Twitter YouTube

class XboxDevice

Defined in:  TSInput.h
Encapsulates an Xbox controller device (Windows only).
Definition

class XboxDevice final : public InputDevice

Description
The XboxDevice class encapsulates an Xbox game controller device. This type of input device can exist only on the Windows platform.

The following table lists the input controls belonging to an Xbox device and their corresponding 32-bit HID usage values. All Xbox devices have exactly the input controls listed in this table and no others.
0x00010030 Left stick x axis.
0x00010031 Left stick y axis.
0x00010032 Right stick x axis.
0x00010035 Right stick y axis.
0x00010033 Left trigger.
0x00010034 Right trigger.
0x00010090 Directional pad up.
0x00010091 Directional pad down.
0x00010092 Directional pad right.
0x00010093 Directional pad down.
0x00090001 A button.
0x00090002 B button.
0x00090003 X button.
0x00090004 Y button.
0x00090005 LB button.
0x00090006 RB button.
0x00090007 Back button.
0x00090008 Start button.
0x00090009 Left stick button.
0x0009000A Right stick button.
Base Classes
InputDevice An XboxDevice is a specific type of input device.
See Also

MouseDevice

KeyboardDevice

JoystickDevice

GameDevice

OrbisDevice