mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-18 18:58:27 +00:00
SDL_Keycode is now Uint32
This commit is contained in:
parent
d3e28f3ab8
commit
1944c009e9
2 changed files with 2 additions and 2 deletions
|
@ -877,7 +877,7 @@ The following functions have been removed:
|
||||||
|
|
||||||
## SDL_keycode.h
|
## SDL_keycode.h
|
||||||
|
|
||||||
The SDL_KeyCode enum values have been changed to defines to more clearly reflect that they are a subset of the possible values of an SDL_Keycode.
|
SDL_Keycode is now Uint32 and the SDLK_* constants are now defines instead of an enum, to more clearly reflect that they are a subset of the possible values of an SDL_Keycode.
|
||||||
|
|
||||||
The following symbols have been removed:
|
The following symbols have been removed:
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
*
|
*
|
||||||
* \sa SDL_KeyCode
|
* \sa SDL_KeyCode
|
||||||
*/
|
*/
|
||||||
typedef Sint32 SDL_Keycode;
|
typedef Uint32 SDL_Keycode;
|
||||||
|
|
||||||
#define SDLK_SCANCODE_MASK (1u<<30)
|
#define SDLK_SCANCODE_MASK (1u<<30)
|
||||||
#define SDL_SCANCODE_TO_KEYCODE(X) (X | SDLK_SCANCODE_MASK)
|
#define SDL_SCANCODE_TO_KEYCODE(X) (X | SDLK_SCANCODE_MASK)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue