events: Make sure new display events don't overlap with sdl2-compat.

Reference PR #6867.
main
Ryan C. Gordon 2022-12-22 11:47:54 -05:00
parent 3197632347
commit 7a5a1b16ce
No known key found for this signature in database
GPG Key ID: FA148B892AB48044
1 changed files with 3 additions and 1 deletions

View File

@ -87,7 +87,8 @@ typedef enum
SDL_LOCALECHANGED, /**< The user's locale preferences have changed. */ SDL_LOCALECHANGED, /**< The user's locale preferences have changed. */
/* Display events */ /* Display events */
SDL_DISPLAYEVENT_ORIENTATION = 0x150, /**< Display orientation has changed to data1 */ /* 0x150 was SDL_DISPLAYEVENT, reserve the number for sdl2-compat */
SDL_DISPLAYEVENT_ORIENTATION = 0x151, /**< Display orientation has changed to data1 */
SDL_DISPLAYEVENT_CONNECTED, /**< Display has been added to the system */ 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_DISPLAYEVENT_MOVED, /**< Display has changed position */
@ -95,6 +96,7 @@ typedef enum
SDL_DISPLAYEVENT_LAST = SDL_DISPLAYEVENT_DISCONNECTED, SDL_DISPLAYEVENT_LAST = SDL_DISPLAYEVENT_DISCONNECTED,
/* Window events */ /* Window events */
/* 0x200 was SDL_WINDOWEVENT, reserve the number for sdl2-compat */
SDL_SYSWMEVENT = 0x201, /**< System specific event */ SDL_SYSWMEVENT = 0x201, /**< System specific event */
SDL_WINDOWEVENT_SHOWN, /**< Window has been shown */ SDL_WINDOWEVENT_SHOWN, /**< Window has been shown */
SDL_WINDOWEVENT_HIDDEN, /**< Window has been hidden */ SDL_WINDOWEVENT_HIDDEN, /**< Window has been hidden */