mirror of
https://github.com/shadps4-emu/ext-SDL.git
synced 2024-11-27 03:50:25 +00:00
SDL_WINDOW_INPUT_GRABBED has been renamed SDL_WINDOW_MOUSE_GRABBED
This commit is contained in:
parent
e83c54f271
commit
31f464153d
@ -2330,3 +2330,7 @@ expression e;
|
|||||||
@@
|
@@
|
||||||
- SDL_WINDOW_FULLSCREEN
|
- SDL_WINDOW_FULLSCREEN
|
||||||
+ SDL_WINDOW_FULLSCREEN_EXCLUSIVE
|
+ SDL_WINDOW_FULLSCREEN_EXCLUSIVE
|
||||||
|
@@
|
||||||
|
@@
|
||||||
|
- SDL_WINDOW_INPUT_GRABBED
|
||||||
|
+ SDL_WINDOW_MOUSE_GRABBED
|
||||||
|
@ -979,6 +979,9 @@ SDL_Window id type is named SDL_WindowID
|
|||||||
|
|
||||||
SDL_WINDOW_FULLSCREEN has been renamed SDL_WINDOW_FULLSCREEN_EXCLUSIVE, and SDL_WINDOW_FULLSCREEN_DESKTOP no longer includes the old SDL_WINDOW_FULLSCREEN flag. You can use `(SDL_GetWindowFlags(window) & SDL_WINDOW_FULLSCREEN_MASK) != 0` if you want to check for either state.
|
SDL_WINDOW_FULLSCREEN has been renamed SDL_WINDOW_FULLSCREEN_EXCLUSIVE, and SDL_WINDOW_FULLSCREEN_DESKTOP no longer includes the old SDL_WINDOW_FULLSCREEN flag. You can use `(SDL_GetWindowFlags(window) & SDL_WINDOW_FULLSCREEN_MASK) != 0` if you want to check for either state.
|
||||||
|
|
||||||
|
The following symbols have been renamed:
|
||||||
|
* SDL_WINDOW_INPUT_GRABBED => SDL_WINDOW_MOUSE_GRABBED
|
||||||
|
|
||||||
## SDL_vulkan.h
|
## SDL_vulkan.h
|
||||||
|
|
||||||
SDL_Vulkan_GetInstanceExtensions() no longer takes a window parameter.
|
SDL_Vulkan_GetInstanceExtensions() no longer takes a window parameter.
|
||||||
|
@ -416,6 +416,7 @@
|
|||||||
#define SDL_GetPointDisplayIndex SDL_GetDisplayIndexForPoint
|
#define SDL_GetPointDisplayIndex SDL_GetDisplayIndexForPoint
|
||||||
#define SDL_GetRectDisplayIndex SDL_GetDisplayIndexForRect
|
#define SDL_GetRectDisplayIndex SDL_GetDisplayIndexForRect
|
||||||
#define SDL_WINDOW_FULLSCREEN SDL_WINDOW_FULLSCREEN_EXCLUSIVE
|
#define SDL_WINDOW_FULLSCREEN SDL_WINDOW_FULLSCREEN_EXCLUSIVE
|
||||||
|
#define SDL_WINDOW_INPUT_GRABBED SDL_WINDOW_MOUSE_GRABBED
|
||||||
|
|
||||||
#elif !defined(SDL_DISABLE_OLD_NAMES)
|
#elif !defined(SDL_DISABLE_OLD_NAMES)
|
||||||
|
|
||||||
@ -797,6 +798,7 @@
|
|||||||
#define SDL_GetPointDisplayIndex SDL_GetPointDisplayIndex_renamed_SDL_GetDisplayIndexForPoint
|
#define SDL_GetPointDisplayIndex SDL_GetPointDisplayIndex_renamed_SDL_GetDisplayIndexForPoint
|
||||||
#define SDL_GetRectDisplayIndex SDL_GetRectDisplayIndex_renamed_SDL_GetDisplayIndexForRect
|
#define SDL_GetRectDisplayIndex SDL_GetRectDisplayIndex_renamed_SDL_GetDisplayIndexForRect
|
||||||
#define SDL_WINDOW_FULLSCREEN SDL_WINDOW_FULLSCREEN_renamed_SDL_WINDOW_FULLSCREEN_EXCLUSIVE
|
#define SDL_WINDOW_FULLSCREEN SDL_WINDOW_FULLSCREEN_renamed_SDL_WINDOW_FULLSCREEN_EXCLUSIVE
|
||||||
|
#define SDL_WINDOW_INPUT_GRABBED SDL_WINDOW_INPUT_GRABBED_renamed_SDL_WINDOW_MOUSE_GRABBED
|
||||||
|
|
||||||
#endif /* SDL_ENABLE_OLD_NAMES */
|
#endif /* SDL_ENABLE_OLD_NAMES */
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ extern "C" {
|
|||||||
* \param h The height of the window.
|
* \param h The height of the window.
|
||||||
* \param flags The flags for the window, a mask of SDL_WINDOW_BORDERLESS with
|
* \param flags The flags for the window, a mask of SDL_WINDOW_BORDERLESS with
|
||||||
* any of the following: ::SDL_WINDOW_OPENGL,
|
* any of the following: ::SDL_WINDOW_OPENGL,
|
||||||
* ::SDL_WINDOW_INPUT_GRABBED, ::SDL_WINDOW_HIDDEN,
|
* ::SDL_WINDOW_MOUSE_GRABBED, ::SDL_WINDOW_HIDDEN,
|
||||||
* ::SDL_WINDOW_RESIZABLE, ::SDL_WINDOW_MAXIMIZED,
|
* ::SDL_WINDOW_RESIZABLE, ::SDL_WINDOW_MAXIMIZED,
|
||||||
* ::SDL_WINDOW_MINIMIZED, ::SDL_WINDOW_BORDERLESS is always set,
|
* ::SDL_WINDOW_MINIMIZED, ::SDL_WINDOW_BORDERLESS is always set,
|
||||||
* and ::SDL_WINDOW_FULLSCREEN_MASK is always unset.
|
* and ::SDL_WINDOW_FULLSCREEN_MASK is always unset.
|
||||||
|
@ -131,7 +131,6 @@ typedef enum
|
|||||||
SDL_WINDOW_VULKAN = 0x10000000, /**< window usable for Vulkan surface */
|
SDL_WINDOW_VULKAN = 0x10000000, /**< window usable for Vulkan surface */
|
||||||
SDL_WINDOW_METAL = 0x20000000, /**< window usable for Metal view */
|
SDL_WINDOW_METAL = 0x20000000, /**< window usable for Metal view */
|
||||||
|
|
||||||
SDL_WINDOW_INPUT_GRABBED = SDL_WINDOW_MOUSE_GRABBED /**< equivalent to SDL_WINDOW_MOUSE_GRABBED for compatibility */
|
|
||||||
} SDL_WindowFlags;
|
} SDL_WindowFlags;
|
||||||
|
|
||||||
#define SDL_WINDOW_FULLSCREEN_MASK (SDL_WINDOW_FULLSCREEN_EXCLUSIVE | SDL_WINDOW_FULLSCREEN_DESKTOP)
|
#define SDL_WINDOW_FULLSCREEN_MASK (SDL_WINDOW_FULLSCREEN_EXCLUSIVE | SDL_WINDOW_FULLSCREEN_DESKTOP)
|
||||||
@ -658,7 +657,7 @@ extern DECLSPEC Uint32 SDLCALL SDL_GetWindowPixelFormat(SDL_Window *window);
|
|||||||
* - `SDL_WINDOW_RESIZABLE`: window can be resized
|
* - `SDL_WINDOW_RESIZABLE`: window can be resized
|
||||||
* - `SDL_WINDOW_MINIMIZED`: window is minimized
|
* - `SDL_WINDOW_MINIMIZED`: window is minimized
|
||||||
* - `SDL_WINDOW_MAXIMIZED`: window is maximized
|
* - `SDL_WINDOW_MAXIMIZED`: window is maximized
|
||||||
* - `SDL_WINDOW_INPUT_GRABBED`: window has grabbed input focus
|
* - `SDL_WINDOW_MOUSE_GRABBED`: window has grabbed mouse focus
|
||||||
*
|
*
|
||||||
* The SDL_Window is implicitly shown if SDL_WINDOW_HIDDEN is not set.
|
* The SDL_Window is implicitly shown if SDL_WINDOW_HIDDEN is not set.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user