Skip to content

Commit 3dceb72

Browse files
raiguardslouken
authored andcommitted
Suppress spammy gamepad and joystick update events
1 parent b0a282e commit 3dceb72

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/events/SDL_events.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,8 +895,12 @@ static void SDL_LogEvent(const SDL_Event *event)
895895
(event->type == SDL_EVENT_FINGER_MOTION) ||
896896
(event->type == SDL_EVENT_PEN_AXIS) ||
897897
(event->type == SDL_EVENT_PEN_MOTION) ||
898-
(event->type == SDL_EVENT_GAMEPAD_TOUCHPAD_MOTION) ||
898+
(event->type == SDL_EVENT_GAMEPAD_AXIS_MOTION) ||
899899
(event->type == SDL_EVENT_GAMEPAD_SENSOR_UPDATE) ||
900+
(event->type == SDL_EVENT_GAMEPAD_TOUCHPAD_MOTION) ||
901+
(event->type == SDL_EVENT_GAMEPAD_UPDATE_COMPLETE) ||
902+
(event->type == SDL_EVENT_JOYSTICK_AXIS_MOTION) ||
903+
(event->type == SDL_EVENT_JOYSTICK_UPDATE_COMPLETE) ||
900904
(event->type == SDL_EVENT_SENSOR_UPDATE))) {
901905
return;
902906
}

0 commit comments

Comments
 (0)