From 9ae56cb3535d9cb8fa04055941c29e23f763e211 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 6 Dec 2021 21:18:23 -0600 Subject: [PATCH] events: Add logging for SDL_MOUSEWHEEL preciseX/Y fields --- src/events/SDL_events.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/events/SDL_events.c b/src/events/SDL_events.c index a4124bf88..f61075eeb 100644 --- a/src/events/SDL_events.c +++ b/src/events/SDL_events.c @@ -287,9 +287,10 @@ SDL_LogEvent(const SDL_Event *event) SDL_EVENT_CASE(SDL_MOUSEWHEEL) - SDL_snprintf(details, sizeof (details), " (timestamp=%u windowid=%u which=%u x=%d y=%d direction=%s)", + SDL_snprintf(details, sizeof (details), " (timestamp=%u windowid=%u which=%u x=%d y=%d preciseX=%f preciseY=%f direction=%s)", (uint) event->wheel.timestamp, (uint) event->wheel.windowID, (uint) event->wheel.which, (int) event->wheel.x, (int) event->wheel.y, + event->wheel.preciseX, event->wheel.preciseY, event->wheel.direction == SDL_MOUSEWHEEL_NORMAL ? "normal" : "flipped"); break;