xinput topic
Game Controller APIs
XInput Game Controller API enables applications to receive input from the Xbox Controller for Windows.
Functions
-
XInputEnable(
int enable) → void xinput - Sets the reporting state of XInput.
-
XInputEnable(
int enable) → void xinput - Sets the reporting state of XInput.
-
XInputGetAudioDeviceIds(
int dwUserIndex, Pointer< xinputUtf16> pRenderDeviceId, Pointer<Uint32> pRenderCount, Pointer<Utf16> pCaptureDeviceId, Pointer<Uint32> pCaptureCount) → int - Retrieves the sound rendering and sound capture audio device IDs that are associated with the headset connected to the specified controller.
-
XInputGetAudioDeviceIds(
int dwUserIndex, Pointer< xinputUtf16> pRenderDeviceId, Pointer<Uint32> pRenderCount, Pointer<Utf16> pCaptureDeviceId, Pointer<Uint32> pCaptureCount) → int - Retrieves the sound rendering and sound capture audio device IDs that are associated with the headset connected to the specified controller.
-
XInputGetBatteryInformation(
int dwUserIndex, int devType, Pointer< xinputXINPUT_BATTERY_INFORMATION> pBatteryInformation) → int - Retrieves the battery type and charge status of a wireless controller.
-
XInputGetBatteryInformation(
int dwUserIndex, int devType, Pointer< xinputXINPUT_BATTERY_INFORMATION> pBatteryInformation) → int - Retrieves the battery type and charge status of a wireless controller.
-
XInputGetCapabilities(
int dwUserIndex, int dwFlags, Pointer< xinputXINPUT_CAPABILITIES> pCapabilities) → int - Retrieves the capabilities and features of a connected controller.
-
XInputGetCapabilities(
int dwUserIndex, int dwFlags, Pointer< xinputXINPUT_CAPABILITIES> pCapabilities) → int - Retrieves the capabilities and features of a connected controller.
-
XInputGetKeystroke(
int dwUserIndex, int dwReserved, Pointer< xinputXINPUT_KEYSTROKE> pKeystroke) → int - Retrieves a gamepad input event.
-
XInputGetKeystroke(
int dwUserIndex, int dwReserved, Pointer< xinputXINPUT_KEYSTROKE> pKeystroke) → int - Retrieves a gamepad input event.
-
XInputGetState(
int dwUserIndex, Pointer< xinputXINPUT_STATE> pState) → int - Retrieves the current state of the specified controller.
-
XInputGetState(
int dwUserIndex, Pointer< xinputXINPUT_STATE> pState) → int - Retrieves the current state of the specified controller.
-
XInputSetState(
int dwUserIndex, Pointer< xinputXINPUT_VIBRATION> pVibration) → int - Sends data to a connected controller. This function is used to activate the vibration function of a controller.
-
XInputSetState(
int dwUserIndex, Pointer< xinputXINPUT_VIBRATION> pVibration) → int - Sends data to a connected controller. This function is used to activate the vibration function of a controller.