More gamepad renaming

This commit is contained in:
Sam Lantinga committed 2022-12-27 11:31:54 -08:00
1 parent 58aecf0a54
commit ab2d007982
13 files changed
+35 -30

No files matched your search

+1 -1
View File
@@ -26,7 +26,7 @@ TestVirtualJoystick(void *arg)
SDL_zero(desc);
desc.version = SDL_VIRTUAL_JOYSTICK_DESC_VERSION;
desc.type = SDL_JOYSTICK_TYPE_GAMECONTROLLER;
desc.type = SDL_JOYSTICK_TYPE_GAMEPAD;
desc.naxes = SDL_GAMEPAD_AXIS_MAX;
desc.nbuttons = SDL_GAMEPAD_BUTTON_MAX;
desc.vendor_id = USB_VENDOR_NVIDIA;
+1 -1
View File
@@ -392,7 +392,7 @@ static void OpenVirtualGamepad()
SDL_zero(desc);
desc.version = SDL_VIRTUAL_JOYSTICK_DESC_VERSION;
desc.type = SDL_JOYSTICK_TYPE_GAMECONTROLLER;
desc.type = SDL_JOYSTICK_TYPE_GAMEPAD;
desc.naxes = SDL_GAMEPAD_AXIS_MAX;
desc.nbuttons = SDL_GAMEPAD_BUTTON_MAX;
desc.SetPlayerIndex = VirtualGamepadSetPlayerIndex;
+1 -1
View File
@@ -43,7 +43,7 @@ PrintJoystick(SDL_Joystick *joy)
SDL_assert(SDL_GetJoystickFromInstanceID(SDL_GetJoystickInstanceID(joy)) == joy);
SDL_GetJoystickGUIDString(SDL_GetJoystickGUID(joy), guid, sizeof(guid));
switch (SDL_GetJoystickType(joy)) {
case SDL_JOYSTICK_TYPE_GAMECONTROLLER:
case SDL_JOYSTICK_TYPE_GAMEPAD:
type = "Game Controller";
break;
case SDL_JOYSTICK_TYPE_WHEEL: