mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-30 15:08:31 +00:00
More gamepad renaming
This commit is contained in:
@@ -120,7 +120,7 @@ int SDL_JoystickAttachVirtualInner(const SDL_VirtualJoystickDesc *desc)
|
||||
name = hwdata->desc.name;
|
||||
} else {
|
||||
switch (hwdata->desc.type) {
|
||||
case SDL_JOYSTICK_TYPE_GAMECONTROLLER:
|
||||
case SDL_JOYSTICK_TYPE_GAMEPAD:
|
||||
name = "Virtual Controller";
|
||||
break;
|
||||
case SDL_JOYSTICK_TYPE_WHEEL:
|
||||
@@ -154,7 +154,7 @@ int SDL_JoystickAttachVirtualInner(const SDL_VirtualJoystickDesc *desc)
|
||||
}
|
||||
hwdata->name = SDL_strdup(name);
|
||||
|
||||
if (hwdata->desc.type == SDL_JOYSTICK_TYPE_GAMECONTROLLER) {
|
||||
if (hwdata->desc.type == SDL_JOYSTICK_TYPE_GAMEPAD) {
|
||||
int i, axis;
|
||||
|
||||
if (hwdata->desc.button_mask == 0) {
|
||||
@@ -579,7 +579,7 @@ static SDL_bool VIRTUAL_JoystickGetGamepadMapping(int device_index, SDL_GamepadM
|
||||
int current_button = 0;
|
||||
int current_axis = 0;
|
||||
|
||||
if (hwdata->desc.type != SDL_JOYSTICK_TYPE_GAMECONTROLLER) {
|
||||
if (hwdata->desc.type != SDL_JOYSTICK_TYPE_GAMEPAD) {
|
||||
return SDL_FALSE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user