Use enums as types in SDL_*Event structures

The main `SDL_Event` union is not using the enum as
valid user events types are not in the enum.
This commit is contained in:
Susko3 2024-03-06 20:14:53 +01:00 committed by Sam Lantinga
parent 641b911d38
commit 722f4104bf
3 changed files with 31 additions and 31 deletions

View file

@ -1708,7 +1708,7 @@ static void SDLTest_PrintEvent(const SDL_Event *event)
event->button.windowID);
break;
case SDL_EVENT_MOUSE_WHEEL:
SDL_Log("SDL EVENT: Mouse: wheel scrolled %g in x and %g in y (reversed: %" SDL_PRIu32 ") in window %" SDL_PRIu32,
SDL_Log("SDL EVENT: Mouse: wheel scrolled %g in x and %g in y (reversed: %d) in window %" SDL_PRIu32,
event->wheel.x, event->wheel.y, event->wheel.direction, event->wheel.windowID);
break;
case SDL_EVENT_JOYSTICK_ADDED: