Lines Matching refs:instance_id
136 SDL_GetPlayerIndexForJoystickID(SDL_JoystickID instance_id) in SDL_GetPlayerIndexForJoystickID() argument
141 if (instance_id == SDL_joystick_players[player_index]) { in SDL_GetPlayerIndexForJoystickID()
161 SDL_SetJoystickIDForPlayerIndex(int player_index, SDL_JoystickID instance_id) in SDL_SetJoystickIDForPlayerIndex() argument
181 } else if (SDL_joystick_players[player_index] == instance_id) { in SDL_SetJoystickIDForPlayerIndex()
187 existing_player_index = SDL_GetPlayerIndexForJoystickID(instance_id); in SDL_SetJoystickIDForPlayerIndex()
192 SDL_joystick_players[player_index] = instance_id; in SDL_SetJoystickIDForPlayerIndex()
195 device_index = SDL_JoystickGetDeviceIndexFromInstanceID(instance_id); in SDL_SetJoystickIDForPlayerIndex()
375 SDL_JoystickID instance_id; in SDL_JoystickOpen() local
392 instance_id = driver->GetDeviceInstanceID(device_index); in SDL_JoystickOpen()
394 if (instance_id == joysticklist->instance_id) { in SDL_JoystickOpen()
412 joystick->instance_id = instance_id; in SDL_JoystickOpen()
787 return joystick->instance_id; in SDL_JoystickInstanceID()
794 SDL_JoystickFromInstanceID(SDL_JoystickID instance_id) in SDL_JoystickFromInstanceID() argument
800 if (joystick->instance_id == instance_id) { in SDL_JoystickFromInstanceID()
814 SDL_JoystickID instance_id; in SDL_JoystickFromPlayerIndex() local
818 instance_id = SDL_GetJoystickIDForPlayerIndex(player_index); in SDL_JoystickFromPlayerIndex()
820 if (joystick->instance_id == instance_id) { in SDL_JoystickFromPlayerIndex()
854 player_index = SDL_GetPlayerIndexForJoystickID(joystick->instance_id); in SDL_JoystickGetPlayerIndex()
871 SDL_SetJoystickIDForPlayerIndex(player_index, joystick->instance_id); in SDL_JoystickSetPlayerIndex()
1135 if (joystick->instance_id == device_instance) { in SDL_PrivateJoystickRemoved()
1215 event.jaxis.which = joystick->instance_id; in SDL_PrivateJoystickAxis()
1255 event.jhat.which = joystick->instance_id; in SDL_PrivateJoystickHat()
1290 event.jball.which = joystick->instance_id; in SDL_PrivateJoystickBall()
1343 event.jbutton.which = joystick->instance_id; in SDL_PrivateJoystickButton()
2130 SDL_JoystickID instance_id = -1; in SDL_JoystickGetDeviceInstanceID() local
2134 instance_id = driver->GetDeviceInstanceID(device_index); in SDL_JoystickGetDeviceInstanceID()
2138 return instance_id; in SDL_JoystickGetDeviceInstanceID()
2141 int SDL_JoystickGetDeviceIndexFromInstanceID(SDL_JoystickID instance_id) in SDL_JoystickGetDeviceIndexFromInstanceID() argument
2148 if (SDL_JoystickGetDeviceInstanceID(i) == instance_id) { in SDL_JoystickGetDeviceIndexFromInstanceID()