mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-01 09:27:39 +00:00
Added logging for SDL_DISPLAYEVENT_MOVED
(cherry picked from commit be3b1cff0b
)
This commit is contained in:
parent
7d1bf0a9fe
commit
5bc80abe0d
2 changed files with 5 additions and 0 deletions
|
@ -1458,6 +1458,10 @@ static void SDLTest_PrintEvent(SDL_Event *event)
|
|||
SDL_Log("SDL EVENT: Display %" SDL_PRIu32 " connected",
|
||||
event->display.display);
|
||||
break;
|
||||
case SDL_DISPLAYEVENT_MOVED:
|
||||
SDL_Log("SDL EVENT: Display %" SDL_PRIu32 " changed position",
|
||||
event->display.display);
|
||||
break;
|
||||
case SDL_DISPLAYEVENT_ORIENTATION:
|
||||
SDL_Log("SDL EVENT: Display %" SDL_PRIu32 " changed orientation to %s",
|
||||
event->display.display, DisplayOrientationName(event->display.data1));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue