mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 06:55:38 +00:00
Added logging for SDL_DISPLAYEVENT_MOVED
This commit is contained in:
parent
ab479b4961
commit
be3b1cff0b
|
@ -247,6 +247,7 @@ static void SDL_LogEvent(const SDL_Event *event)
|
|||
SDL_DISPLAYEVENT_CASE(SDL_DISPLAYEVENT_ORIENTATION);
|
||||
SDL_DISPLAYEVENT_CASE(SDL_DISPLAYEVENT_CONNECTED);
|
||||
SDL_DISPLAYEVENT_CASE(SDL_DISPLAYEVENT_DISCONNECTED);
|
||||
SDL_DISPLAYEVENT_CASE(SDL_DISPLAYEVENT_MOVED);
|
||||
#undef SDL_DISPLAYEVENT_CASE
|
||||
default:
|
||||
SDL_strlcpy(name2, "UNKNOWN (bug? fixme?)", sizeof(name2));
|
||||
|
|
|
@ -1462,6 +1462,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…
Reference in a new issue