Lines Matching refs:driver
164 SDL_JoystickDriver *driver; in SDL_SetJoystickIDForPlayerIndex() local
196 if (SDL_GetDriverAndJoystickIndex(device_index, &driver, &device_index)) { in SDL_SetJoystickIDForPlayerIndex()
197 driver->SetDevicePlayerIndex(device_index, player_index); in SDL_SetJoystickIDForPlayerIndex()
277 SDL_GetDriverAndJoystickIndex(int device_index, SDL_JoystickDriver **driver, int *driver_index) in SDL_GetDriverAndJoystickIndex() argument
285 *driver = SDL_joystick_drivers[i]; in SDL_GetDriverAndJoystickIndex()
304 SDL_JoystickDriver *driver; in SDL_JoystickNameForIndex() local
308 if (SDL_GetDriverAndJoystickIndex(device_index, &driver, &device_index)) { in SDL_JoystickNameForIndex()
309 name = driver->GetDeviceName(device_index); in SDL_JoystickNameForIndex()
374 SDL_JoystickDriver *driver; in SDL_JoystickOpen() local
382 if (!SDL_GetDriverAndJoystickIndex(device_index, &driver, &device_index)) { in SDL_JoystickOpen()
392 instance_id = driver->GetDeviceInstanceID(device_index); in SDL_JoystickOpen()
411 joystick->driver = driver; in SDL_JoystickOpen()
416 if (driver->Open(joystick, device_index) < 0) { in SDL_JoystickOpen()
422 joystickname = driver->GetDeviceName(device_index); in SDL_JoystickOpen()
429 joystick->guid = driver->GetDeviceGUID(device_index); in SDL_JoystickOpen()
473 driver->Update(joystick); in SDL_JoystickOpen()
500 SDL_JoystickDriver *driver; in SDL_JoystickDetachVirtual() local
503 if (SDL_GetDriverAndJoystickIndex(device_index, &driver, &device_index)) { in SDL_JoystickDetachVirtual()
504 if (driver == &SDL_VIRTUAL_JoystickDriver) { in SDL_JoystickDetachVirtual()
523 SDL_JoystickDriver *driver; in SDL_JoystickIsVirtual() local
528 if (SDL_GetDriverAndJoystickIndex(device_index, &driver, &driver_device_index)) { in SDL_JoystickIsVirtual()
529 if (driver == &SDL_VIRTUAL_JoystickDriver) { in SDL_JoystickIsVirtual()
596 SDL_JoystickDriver *driver; in SDL_PrivateJoystickGetAutoGamepadMapping() local
600 if (SDL_GetDriverAndJoystickIndex(device_index, &driver, &device_index)) { in SDL_PrivateJoystickGetAutoGamepadMapping()
601 is_ok = driver->GetGamepadMapping(device_index, out); in SDL_PrivateJoystickGetAutoGamepadMapping()
890 result = joystick->driver->Rumble(joystick, low_frequency_rumble, high_frequency_rumble); in SDL_JoystickRumble()
940 joystick->driver->Close(joystick); in SDL_JoystickClose()
1037 SDL_JoystickDriver *driver; in SDL_PrivateJoystickAdded() local
1048 if (SDL_GetDriverAndJoystickIndex(device_index, &driver, &driver_device_index)) { in SDL_PrivateJoystickAdded()
1049 player_index = driver->GetDevicePlayerIndex(driver_device_index); in SDL_PrivateJoystickAdded()
1383 if (joystick->driver) { in SDL_JoystickUpdate()
1384 joystick->driver->Update(joystick); in SDL_JoystickUpdate()
2072 SDL_JoystickDriver *driver; in SDL_JoystickGetDeviceGUID() local
2076 if (SDL_GetDriverAndJoystickIndex(device_index, &driver, &device_index)) { in SDL_JoystickGetDeviceGUID()
2077 guid = driver->GetDeviceGUID(device_index); in SDL_JoystickGetDeviceGUID()
2129 SDL_JoystickDriver *driver; in SDL_JoystickGetDeviceInstanceID() local
2133 if (SDL_GetDriverAndJoystickIndex(device_index, &driver, &device_index)) { in SDL_JoystickGetDeviceInstanceID()
2134 instance_id = driver->GetDeviceInstanceID(device_index); in SDL_JoystickGetDeviceInstanceID()