Home
last modified time | relevance | path

Searched refs:player_index (Results 1 – 25 of 27) sorted by relevance

12

/AliOS-Things-master/components/SDL2/src/joystick/
A DSDL_joystick.c125 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 DSDL_sysjoystick.h108 void (*SetDevicePlayerIndex)(int device_index, int player_index);
A DSDL_gamecontroller.c1965 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 DSDL_hidapi_ps4.c102 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 DSDL_hidapi_xbox360w.c126 …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 DSDL_hidapijoystick_c.h93 …d (*SetDevicePlayerIndex)(SDL_HIDAPI_Device *device, SDL_JoystickID instance_id, int player_index);
A DSDL_hidapijoystick.c966 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 DSDL_hidapi_xbox360.c663 …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 DSDL_hidapi_gamecube.c222 …eCube_SetDevicePlayerIndex(SDL_HIDAPI_Device *device, SDL_JoystickID instance_id, int player_index) in HIDAPI_DriverGameCube_SetDevicePlayerIndex() argument
A DSDL_hidapi_xboxone.c299 …oxOne_SetDevicePlayerIndex(SDL_HIDAPI_Device *device, SDL_JoystickID instance_id, int player_index) in HIDAPI_DriverXboxOne_SetDevicePlayerIndex() argument
A DSDL_hidapi_steam.c984 …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 DSDL_gamecontroller.h221 extern DECLSPEC SDL_GameController *SDLCALL SDL_GameControllerFromPlayerIndex(int player_index);
243 …oid SDLCALL SDL_GameControllerSetPlayerIndex(SDL_GameController *gamecontroller, int player_index);
A DSDL_joystick.h201 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 DSDL_sysjoystick.c62 DUMMY_JoystickSetDevicePlayerIndex(int device_index, int player_index) in DUMMY_JoystickSetDevicePlayerIndex() argument
/AliOS-Things-master/components/SDL2/src/joystick/windows/
A DSDL_rawinputjoystick.c547 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 DSDL_windowsjoystick.c424 WINDOWS_JoystickSetDevicePlayerIndex(int device_index, int player_index) in WINDOWS_JoystickSetDevicePlayerIndex() argument
A DSDL_windows_gaming_input.c467 WGI_JoystickSetDevicePlayerIndex(int device_index, int player_index) in WGI_JoystickSetDevicePlayerIndex() argument
/AliOS-Things-master/components/SDL2/src/joystick/alios/
A DSDL_sysjoystick.c112 AliOS_JoystickSetDevicePlayerIndex(int device_index, int player_index) in AliOS_JoystickSetDevicePlayerIndex() argument
/AliOS-Things-master/components/SDL2/src/joystick/haiku/
A DSDL_haikujoystick.cc107 static void HAIKU_JoystickSetDevicePlayerIndex(int device_index, int player_index) in HAIKU_JoystickSetDevicePlayerIndex() argument
/AliOS-Things-master/components/SDL2/src/joystick/virtual/
A DSDL_virtualjoystick.c286 VIRTUAL_JoystickSetDevicePlayerIndex(int device_index, int player_index) in VIRTUAL_JoystickSetDevicePlayerIndex() argument
/AliOS-Things-master/components/SDL2/src/joystick/emscripten/
A DSDL_sysjoystick.c291 EMSCRIPTEN_JoystickSetDevicePlayerIndex(int device_index, int player_index) in EMSCRIPTEN_JoystickSetDevicePlayerIndex() argument
/AliOS-Things-master/components/SDL2/src/joystick/android/
A DSDL_sysjoystick.c590 ANDROID_JoystickSetDevicePlayerIndex(int device_index, int player_index) in ANDROID_JoystickSetDevicePlayerIndex() argument
/AliOS-Things-master/components/SDL2/src/joystick/iphoneos/
A DSDL_sysjoystick.m479 IOS_JoystickSetDevicePlayerIndex(int device_index, int player_index)
484 device->controller.playerIndex = player_index; field
/AliOS-Things-master/components/SDL2/src/joystick/bsd/
A DSDL_sysjoystick.c280 BSD_JoystickSetDevicePlayerIndex(int device_index, int player_index) in BSD_JoystickSetDevicePlayerIndex() argument
/AliOS-Things-master/components/SDL2/src/joystick/darwin/
A DSDL_sysjoystick.c751 DARWIN_JoystickSetDevicePlayerIndex(int device_index, int player_index) in DARWIN_JoystickSetDevicePlayerIndex() argument

Completed in 69 milliseconds

12