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.
Overview of the XInput Game Controller APIs technology.
To develop XInput Game Controller APIs, you need these headers:
For programming guidance for this technology, see:
For developing hardware devices that interface with the XInput Game Controller APIs, see https://aka.ms/gipdocs.
Functions
XInputEnable Sets the reporting state of XInput. |
XInputGetAudioDeviceIds Retrieves the sound rendering and sound capture audio device IDs that are associated with the headset connected to the specified controller. |
XInputGetBatteryInformation Retrieves the battery type and charge status of a wireless controller. |
XInputGetCapabilities Retrieves the capabilities and features of a connected controller. |
XInputGetDSoundAudioDeviceGuids Gets the sound rendering and sound capture device GUIDs that are associated with the headset connected to the specified controller. |
XInputGetKeystroke Retrieves a gamepad input event. |
XInputGetState Retrieves the current state of the specified controller. |
XInputSetState Sends data to a connected controller. This function is used to activate the vibration function of a controller. |
Structures
XINPUT_BATTERY_INFORMATION Contains information on battery type and charge state. |
XINPUT_CAPABILITIES Describes the capabilities of a connected controller. The XInputGetCapabilities function returns XINPUT_CAPABILITIES. |
XINPUT_GAMEPAD Describes the current state of the controller. |
XINPUT_KEYSTROKE Specifies keystroke data returned by XInputGetKeystroke. |
XINPUT_STATE Represents the state of a controller. |
XINPUT_VIBRATION Specifies motor speed levels for the vibration function of a controller. |