Lines Matching refs:driver
400 SDL_HIDAPI_DeviceDriver *driver = SDL_HIDAPI_drivers[i]; in HIDAPI_IsDeviceSupported() local
401 …if (driver->enabled && driver->IsSupportedDevice(name, type, vendor_id, product_id, version, -1, 0… in HIDAPI_IsDeviceSupported()
440 SDL_HIDAPI_DeviceDriver *driver = SDL_HIDAPI_drivers[i]; in HIDAPI_GetDeviceDriver() local
441 …if (driver->enabled && driver->IsSupportedDevice(device->name, type, device->vendor_id, device->pr… in HIDAPI_GetDeviceDriver()
442 return driver; in HIDAPI_GetDeviceDriver()
453 if (device->driver) { in HIDAPI_GetDeviceByIndex()
484 if (device->driver) { in HIDAPI_SetupDeviceDriver()
489 device->driver = HIDAPI_GetDeviceDriver(device); in HIDAPI_SetupDeviceDriver()
490 if (device->driver) { in HIDAPI_SetupDeviceDriver()
491 const char *name = device->driver->GetDeviceName(device->vendor_id, device->product_id); in HIDAPI_SetupDeviceDriver()
499 if (device->driver && !device->driver->InitDevice(device)) { in HIDAPI_SetupDeviceDriver()
500 device->driver = NULL; in HIDAPI_SetupDeviceDriver()
507 if (!device->driver) { in HIDAPI_CleanupDeviceDriver()
517 device->driver->FreeDevice(device); in HIDAPI_CleanupDeviceDriver()
518 device->driver = NULL; in HIDAPI_CleanupDeviceDriver()
530 SDL_HIDAPI_DeviceDriver *driver = SDL_HIDAPI_drivers[i]; in SDL_HIDAPIDriverHintChanged() local
531 driver->enabled = SDL_GetHintBoolean(driver->hint, enabled); in SDL_HIDAPIDriverHintChanged()
535 SDL_HIDAPI_DeviceDriver *driver = SDL_HIDAPI_drivers[i]; in SDL_HIDAPIDriverHintChanged() local
536 if (SDL_strcmp(name, driver->hint) == 0) { in SDL_HIDAPIDriverHintChanged()
537 driver->enabled = enabled; in SDL_HIDAPIDriverHintChanged()
544 SDL_HIDAPI_DeviceDriver *driver = SDL_HIDAPI_drivers[i]; in SDL_HIDAPIDriverHintChanged() local
545 if (driver->enabled) { in SDL_HIDAPIDriverHintChanged()
554 if (device->driver && !device->driver->enabled) { in SDL_HIDAPIDriverHintChanged()
593 SDL_HIDAPI_DeviceDriver *driver = SDL_HIDAPI_drivers[i]; in HIDAPI_JoystickInit() local
594 SDL_AddHintCallback(driver->hint, SDL_HIDAPIDriverHintChanged, NULL); in HIDAPI_JoystickInit()
772 …e, device->usage, device->path, device->driver ? device->driver->hint : "NONE", device->driver && … in HIDAPI_AddDevice()
884 if (device->vendor_id == vendor_id && device->product_id == product_id && device->driver) { in HIDAPI_IsDevicePresent()
916 SDL_HIDAPI_DeviceDriver *driver = SDL_HIDAPI_drivers[i]; in HIDAPI_JoystickDetect() local
917 if (driver->enabled && driver->PostUpdate) { in HIDAPI_JoystickDetect()
918 driver->PostUpdate(); in HIDAPI_JoystickDetect()
934 if (device->driver) { in HIDAPI_UpdateDevices()
936 device->driver->UpdateDevice(device); in HIDAPI_UpdateDevices()
970 player_index = device->driver->GetDevicePlayerIndex(device, instance_id); in HIDAPI_JoystickGetDevicePlayerIndex()
984 device->driver->SetDevicePlayerIndex(device, instance_id, player_index); in HIDAPI_JoystickSetDevicePlayerIndex()
1025 if (!device->driver->OpenJoystick(device, joystick)) { in HIDAPI_JoystickOpen()
1042 …result = device->driver->RumbleJoystick(device, joystick, low_frequency_rumble, high_frequency_rum… in HIDAPI_JoystickRumble()
1068 device->driver->CloseJoystick(device, joystick); in HIDAPI_JoystickClose()
1091 SDL_HIDAPI_DeviceDriver *driver = SDL_HIDAPI_drivers[i]; in HIDAPI_JoystickQuit() local
1092 SDL_DelHintCallback(driver->hint, SDL_HIDAPIDriverHintChanged, NULL); in HIDAPI_JoystickQuit()