XINPUT_CAPABILITIES
Describes the capabilities of a connected controller.Syntax
Members
TypeType: BYTE Controller type. It must be of type XINPUT_DEVTYPE_GAMEPAD and have one of the values listed in the table below. SubType
Type: BYTE Subtype of the game controller. Allowed subtypes:
Flags
Type: WORD Features of the controller.
Gamepad
Type: XINPUT_GAMEPAD XINPUT_GAMEPAD structure that describes available controller features and control resolutions. Vibration
Type: XINPUT_VIBRATION XINPUT_VIBRATION structure that describes available vibration functionality and resolutions.
Remarks
XInputGetCapabilities returns XINPUT_CAPABILITIES to indicate the characteristics and available functionality of a specified controller. XInputGetCapabilities sets the structure members to indicate which inputs the device supports. For binary state controls, such as digital buttons, the corresponding bit reflects whether the control is supported by the device. For proportional controls, such as thumbsticks, the value indicates the resolution for that control. Some number of the least-significant bits may not be set, to indicate that the control does not provide resolution to that level. The SubType member indicates the specific subtype of the controller present. Games may detect the controller subtype and tune their handling of controller input or output according to the subtypes well suited to their game genre. For example, a game of car racing might check for the presence of a wheel controller to provide finer control of the car being driven. However, titles must not disable or ignore a device according to its subtype. A subtype not recognized by the game or for which the game is not specifically tuned should be treated as a standard gamepad, XINPUT_DEVSUBTYPE_GAMEPAD. Older XUSB Windows drivers report information about incomplete capabilities, particularly for wireless devices. The latest XUSB Windows driver provides full support for wired and wireless devices, and it provide more complete and accurate capabilities flags.Requirements
Header: XInputOnGameInput.h Supported platforms: XBOX One family consoles and XBOX Series consolesSee also
Port XInput to GameInputXInputOnGameInput
