Function SDL_JoystickGetDevicePlayerIndex

pub unsafe extern "C" fn SDL_JoystickGetDevicePlayerIndex(
    device_index: i32,
) -> i32
Available on crate feature dep_sdl2 only.
Expand description

Get the player index of a joystick, or -1 if it’s not available This can be called before any joysticks are opened.

\since This function is available since SDL 2.0.9.