pub fn get_state(user_index: impl Into<User>) -> Result<State, MethodError>
Expand description
[docs.microsoft.com] XInputGetState
Retrieves the current state of the specified controller.
Errors
- ERROR::BAD_ARGUMENTS - Invalid
User
orUser::Any
- ERROR::DEVICE_NOT_CONNECTED -
User
gamepad not connected