Function sdl2_sys::SDL_JoystickSetPlayerIndex
source · pub unsafe extern "C" fn SDL_JoystickSetPlayerIndex(
joystick: *mut SDL_Joystick,
player_index: c_int
)
Expand description
Set the player index of an opened joystick.
\param joystick the SDL_Joystick obtained from SDL_JoystickOpen() \param player_index the player index to set.
\since This function is available since SDL 2.0.12.