Function sdl2_sys::SDL_JoystickGetPlayerIndex
source · pub unsafe extern "C" fn SDL_JoystickGetPlayerIndex(
joystick: *mut SDL_Joystick,
) -> c_int
Expand description
Get the player index of an opened joystick, or -1 if it’s not available
For XInput controllers this returns the XInput user index.