Skip to main content

Module error

Module error 

Source
Expand description

Structs§

Error
An error returned by some XInput function (or wrapper thereof.)
Kind
winresult::ErrorCode corresponding to winresult::ERROR::*, but 32-bit, and oriented around XInput error codes.

Constants§

BAD_ARGUMENTS
Invalid user_index or Flag passed to an XInput function.
BUFFER_TOO_SMALL
XAudio2 device IDs are too large (> 4096 characters) for get_audio_device_ids to read onto the stack.
CO_E_NOTINITIALIZED
COM not initialized. Only observed being returned from xinputuap.dll.
DEVICE_NOT_CONNECTED
No gamepad is connected for user_index. N.B. this can be unreliable for get_audio_device_ids.
INVALID_FUNCTION
A corresponding XInput function was missing, or XInput itself couldn’t be loaded.