Lines Matching refs:device_index
97 SDL_HapticName(int device_index) in SDL_HapticName() argument
99 if ((device_index < 0) || (device_index >= SDL_NumHaptics())) { in SDL_HapticName()
104 return SDL_SYS_HapticName(device_index); in SDL_HapticName()
112 SDL_HapticOpen(int device_index) in SDL_HapticOpen() argument
117 if ((device_index < 0) || (device_index >= SDL_NumHaptics())) { in SDL_HapticOpen()
129 if (device_index == hapticlist->index) { in SDL_HapticOpen()
147 haptic->index = device_index; in SDL_HapticOpen()
173 SDL_HapticOpened(int device_index) in SDL_HapticOpened() argument
179 if ((device_index < 0) || (device_index >= SDL_NumHaptics())) { in SDL_HapticOpened()
190 if (hapticlist->index == (Uint8) device_index) { in SDL_HapticOpened()
232 int device_index; in SDL_HapticOpenFromMouse() local
234 device_index = SDL_SYS_HapticMouse(); in SDL_HapticOpenFromMouse()
236 if (device_index < 0) { in SDL_HapticOpenFromMouse()
241 return SDL_HapticOpen(device_index); in SDL_HapticOpenFromMouse()