Added SDL_DISPLAYEVENT_MOVED to detect when display positioning changes

(cherry picked from commit 264da8c127)
This commit is contained in:
Sam Lantinga
2022-12-08 12:46:13 -08:00
parent 98fa97de91
commit a4a80360f5
3 changed files with 37 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;
/**