Function sdl2_sys::SDL_GameControllerGetPlayerIndex

source ·
pub unsafe extern "C" fn SDL_GameControllerGetPlayerIndex(
    gamecontroller: *mut SDL_GameController,
) -> c_int
Expand description

Get the player index of an opened game controller, or -1 if it’s not available

For XInput controllers this returns the XInput user index.