events: Add logging for SDL_MOUSEWHEEL preciseX/Y fields

main
Cameron Gutman 2021-12-06 21:18:23 -06:00
parent 03019c912a
commit 9ae56cb353
1 changed files with 2 additions and 1 deletions

View File

@ -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;