/AliOS-Things-master/components/SDL2/src/joystick/ |
A D | SDL_joystick.c | 125 int player_index; in SDL_FindFreePlayerIndex() local 127 for (player_index = 0; player_index < SDL_joystick_player_count; ++player_index) { in SDL_FindFreePlayerIndex() 132 return player_index; in SDL_FindFreePlayerIndex() 138 int player_index; in SDL_GetPlayerIndexForJoystickID() local 140 for (player_index = 0; player_index < SDL_joystick_player_count; ++player_index) { in SDL_GetPlayerIndexForJoystickID() 148 return player_index; in SDL_GetPlayerIndexForJoystickID() 154 if (player_index < 0 || player_index >= SDL_joystick_player_count) { in SDL_GetJoystickIDForPlayerIndex() 323 int player_index; in SDL_JoystickGetDevicePlayerIndex() local 329 return player_index; in SDL_JoystickGetDevicePlayerIndex() 847 int player_index; in SDL_JoystickGetPlayerIndex() local [all …]
|
A D | SDL_sysjoystick.h | 108 void (*SetDevicePlayerIndex)(int device_index, int player_index);
|
A D | SDL_gamecontroller.c | 1965 SDL_GameControllerSetPlayerIndex(SDL_GameController *gamecontroller, int player_index) in SDL_GameControllerSetPlayerIndex() argument 1967 SDL_JoystickSetPlayerIndex(SDL_GameControllerGetJoystick(gamecontroller), player_index); in SDL_GameControllerSetPlayerIndex() 2038 SDL_GameController *SDL_GameControllerFromPlayerIndex(int player_index) in SDL_GameControllerFromPlayerIndex() argument 2040 SDL_Joystick *joystick = SDL_JoystickFromPlayerIndex(player_index); in SDL_GameControllerFromPlayerIndex()
|
/AliOS-Things-master/components/SDL2/src/joystick/hidapi/ |
A D | SDL_hidapi_ps4.c | 102 int player_index; member 186 SetLedsForPlayerIndex(DS4EffectsState_t *effects, int player_index) in SetLedsForPlayerIndex() argument 201 if (player_index >= 0) { in SetLedsForPlayerIndex() 202 player_index %= SDL_arraysize(colors); in SetLedsForPlayerIndex() 204 player_index = 0; in SetLedsForPlayerIndex() 207 effects->ucLedRed = colors[player_index][0]; in SetLedsForPlayerIndex() 208 effects->ucLedGreen = colors[player_index][1]; in SetLedsForPlayerIndex() 209 effects->ucLedBlue = colors[player_index][2]; in SetLedsForPlayerIndex() 235 ctx->player_index = player_index; in HIDAPI_DriverPS4_SetDevicePlayerIndex() 289 ctx->player_index = SDL_JoystickGetPlayerIndex(joystick); in HIDAPI_DriverPS4_OpenJoystick() [all …]
|
A D | SDL_hidapi_xbox360w.c | 126 …x360W_SetDevicePlayerIndex(SDL_HIDAPI_Device *device, SDL_JoystickID instance_id, int player_index) in HIDAPI_DriverXbox360W_SetDevicePlayerIndex() argument 128 SetSlotLED(device->dev, (player_index % 4)); in HIDAPI_DriverXbox360W_SetDevicePlayerIndex()
|
A D | SDL_hidapijoystick_c.h | 93 …d (*SetDevicePlayerIndex)(SDL_HIDAPI_Device *device, SDL_JoystickID instance_id, int player_index);
|
A D | SDL_hidapijoystick.c | 966 int player_index = -1; in HIDAPI_JoystickGetDevicePlayerIndex() local 970 player_index = device->driver->GetDevicePlayerIndex(device, instance_id); in HIDAPI_JoystickGetDevicePlayerIndex() 973 return player_index; in HIDAPI_JoystickGetDevicePlayerIndex() 977 HIDAPI_JoystickSetDevicePlayerIndex(int device_index, int player_index) in HIDAPI_JoystickSetDevicePlayerIndex() argument 984 device->driver->SetDevicePlayerIndex(device, instance_id, player_index); in HIDAPI_JoystickSetDevicePlayerIndex()
|
A D | SDL_hidapi_xbox360.c | 663 …ox360_SetDevicePlayerIndex(SDL_HIDAPI_Device *device, SDL_JoystickID instance_id, int player_index) in HIDAPI_DriverXbox360_SetDevicePlayerIndex() argument 666 SetSlotLED(device->dev, (player_index % 4)); in HIDAPI_DriverXbox360_SetDevicePlayerIndex() 674 int player_index; in HIDAPI_DriverXbox360_OpenJoystick() local 705 player_index = SDL_JoystickGetPlayerIndex(joystick); in HIDAPI_DriverXbox360_OpenJoystick() 706 if (player_index >= 0 && device->dev) { in HIDAPI_DriverXbox360_OpenJoystick() 707 SetSlotLED(device->dev, (player_index % 4)); in HIDAPI_DriverXbox360_OpenJoystick()
|
A D | SDL_hidapi_gamecube.c | 222 …eCube_SetDevicePlayerIndex(SDL_HIDAPI_Device *device, SDL_JoystickID instance_id, int player_index) in HIDAPI_DriverGameCube_SetDevicePlayerIndex() argument
|
A D | SDL_hidapi_xboxone.c | 299 …oxOne_SetDevicePlayerIndex(SDL_HIDAPI_Device *device, SDL_JoystickID instance_id, int player_index) in HIDAPI_DriverXboxOne_SetDevicePlayerIndex() argument
|
A D | SDL_hidapi_steam.c | 984 …Steam_SetDevicePlayerIndex(SDL_HIDAPI_Device *device, SDL_JoystickID instance_id, int player_index) in HIDAPI_DriverSteam_SetDevicePlayerIndex() argument
|
/AliOS-Things-master/components/SDL2/include/ |
A D | SDL_gamecontroller.h | 221 extern DECLSPEC SDL_GameController *SDLCALL SDL_GameControllerFromPlayerIndex(int player_index); 243 …oid SDLCALL SDL_GameControllerSetPlayerIndex(SDL_GameController *gamecontroller, int player_index);
|
A D | SDL_joystick.h | 201 extern DECLSPEC SDL_Joystick *SDLCALL SDL_JoystickFromPlayerIndex(int player_index); 253 extern DECLSPEC void SDLCALL SDL_JoystickSetPlayerIndex(SDL_Joystick * joystick, int player_index);
|
/AliOS-Things-master/components/SDL2/src/joystick/dummy/ |
A D | SDL_sysjoystick.c | 62 DUMMY_JoystickSetDevicePlayerIndex(int device_index, int player_index) in DUMMY_JoystickSetDevicePlayerIndex() argument
|
/AliOS-Things-master/components/SDL2/src/joystick/windows/ |
A D | SDL_rawinputjoystick.c | 547 int player_index = -1; in RAWINPUT_JoystickGetDevicePlayerIndex() local 551 player_index = device->driver->GetDevicePlayerIndex(&device->hiddevice, instance_id); in RAWINPUT_JoystickGetDevicePlayerIndex() 554 return player_index; in RAWINPUT_JoystickGetDevicePlayerIndex() 558 RAWINPUT_JoystickSetDevicePlayerIndex(int device_index, int player_index) in RAWINPUT_JoystickSetDevicePlayerIndex() argument 565 device->driver->SetDevicePlayerIndex(&device->hiddevice, instance_id, player_index); in RAWINPUT_JoystickSetDevicePlayerIndex()
|
A D | SDL_windowsjoystick.c | 424 WINDOWS_JoystickSetDevicePlayerIndex(int device_index, int player_index) in WINDOWS_JoystickSetDevicePlayerIndex() argument
|
A D | SDL_windows_gaming_input.c | 467 WGI_JoystickSetDevicePlayerIndex(int device_index, int player_index) in WGI_JoystickSetDevicePlayerIndex() argument
|
/AliOS-Things-master/components/SDL2/src/joystick/alios/ |
A D | SDL_sysjoystick.c | 112 AliOS_JoystickSetDevicePlayerIndex(int device_index, int player_index) in AliOS_JoystickSetDevicePlayerIndex() argument
|
/AliOS-Things-master/components/SDL2/src/joystick/haiku/ |
A D | SDL_haikujoystick.cc | 107 static void HAIKU_JoystickSetDevicePlayerIndex(int device_index, int player_index) in HAIKU_JoystickSetDevicePlayerIndex() argument
|
/AliOS-Things-master/components/SDL2/src/joystick/virtual/ |
A D | SDL_virtualjoystick.c | 286 VIRTUAL_JoystickSetDevicePlayerIndex(int device_index, int player_index) in VIRTUAL_JoystickSetDevicePlayerIndex() argument
|
/AliOS-Things-master/components/SDL2/src/joystick/emscripten/ |
A D | SDL_sysjoystick.c | 291 EMSCRIPTEN_JoystickSetDevicePlayerIndex(int device_index, int player_index) in EMSCRIPTEN_JoystickSetDevicePlayerIndex() argument
|
/AliOS-Things-master/components/SDL2/src/joystick/android/ |
A D | SDL_sysjoystick.c | 590 ANDROID_JoystickSetDevicePlayerIndex(int device_index, int player_index) in ANDROID_JoystickSetDevicePlayerIndex() argument
|
/AliOS-Things-master/components/SDL2/src/joystick/iphoneos/ |
A D | SDL_sysjoystick.m | 479 IOS_JoystickSetDevicePlayerIndex(int device_index, int player_index) 484 device->controller.playerIndex = player_index; field
|
/AliOS-Things-master/components/SDL2/src/joystick/bsd/ |
A D | SDL_sysjoystick.c | 280 BSD_JoystickSetDevicePlayerIndex(int device_index, int player_index) in BSD_JoystickSetDevicePlayerIndex() argument
|
/AliOS-Things-master/components/SDL2/src/joystick/darwin/ |
A D | SDL_sysjoystick.c | 751 DARWIN_JoystickSetDevicePlayerIndex(int device_index, int player_index) in DARWIN_JoystickSetDevicePlayerIndex() argument
|