Added SDL_DISPLAYEVENT_MOVED to detect when display positioning changes

This commit is contained in:
Sam Lantinga
2022-12-08 12:46:13 -08:00
parent cfc7cac3c9
commit 264da8c127
4 changed files with 45 additions and 9 deletions

View File

@@ -187,7 +187,8 @@ typedef enum
SDL_DISPLAYEVENT_NONE, /**< Never used */
SDL_DISPLAYEVENT_ORIENTATION, /**< Display orientation has changed to data1 */
SDL_DISPLAYEVENT_CONNECTED, /**< Display has been added to the system */
SDL_DISPLAYEVENT_DISCONNECTED /**< Display has been removed from the system */
SDL_DISPLAYEVENT_DISCONNECTED, /**< Display has been removed from the system */
SDL_DISPLAYEVENT_MOVED /**< Display has changed position */
} SDL_DisplayEventID;
/**