Skip to content

Commit

Permalink
events: Add logging for SDL_MOUSEWHEEL preciseX/Y fields
Browse files Browse the repository at this point in the history
  • Loading branch information
cgutman committed Dec 7, 2021
1 parent 03019c9 commit 9ae56cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/events/SDL_events.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9ae56cb

Please sign in to comment.