Function fermium::joystick::SDL_JoystickOpen
source · pub unsafe extern "C" fn SDL_JoystickOpen(
device_index: c_int
) -> *mut SDL_Joystick
Expand description
Open a joystick for use.
The index passed as an argument refers to the N’th joystick on the system.
This index is not the value which will identify this joystick in future
joystick events. The joystick’s instance id (SDL_JoystickID
) will be
used there instead.
Return: A joystick identifier, or NULL if an error occurred.