mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-08-26 16:41:36 +00:00
video/blit: fix -Wimplicit-fallthrough warnings
This commit is contained in:
committed by
Anonymous Maarten
parent
e1b8a03239
commit
f7961b7c9a
@@ -1449,6 +1449,7 @@ static void HandleInputEvents(SDL_Joystick *joystick)
|
||||
HandleHat(SDL_EVDEV_GetEventTimestamp(event), joystick, hat_index, code % 2, event->value);
|
||||
break;
|
||||
}
|
||||
SDL_FALLTHROUGH;
|
||||
default:
|
||||
event->value = AxisCorrect(joystick, code, event->value);
|
||||
SDL_SendJoystickAxis(SDL_EVDEV_GetEventTimestamp(event), joystick,
|
||||
@@ -1521,6 +1522,7 @@ static void HandleClassicEvents(SDL_Joystick *joystick)
|
||||
HandleHat(timestamp, joystick, hat_index, code % 2, events[i].value);
|
||||
break;
|
||||
}
|
||||
SDL_FALLTHROUGH;
|
||||
default:
|
||||
SDL_SendJoystickAxis(timestamp, joystick,
|
||||
joystick->hwdata->abs_map[code],
|
||||
|
||||
Reference in New Issue
Block a user