From 1944c009e9f840d7d68a0198360ed403b4cb23cc Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 9 May 2024 09:09:54 -0700 Subject: [PATCH] SDL_Keycode is now Uint32 --- docs/README-migration.md | 2 +- include/SDL3/SDL_keycode.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/README-migration.md b/docs/README-migration.md index 21a2825d93..cbb42a1721 100644 --- a/docs/README-migration.md +++ b/docs/README-migration.md @@ -877,7 +877,7 @@ The following functions have been removed: ## 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: diff --git a/include/SDL3/SDL_keycode.h b/include/SDL3/SDL_keycode.h index ef0fc911b6..5c1452aef9 100644 --- a/include/SDL3/SDL_keycode.h +++ b/include/SDL3/SDL_keycode.h @@ -46,7 +46,7 @@ * * \sa SDL_KeyCode */ -typedef Sint32 SDL_Keycode; +typedef Uint32 SDL_Keycode; #define SDLK_SCANCODE_MASK (1u<<30) #define SDL_SCANCODE_TO_KEYCODE(X) (X | SDLK_SCANCODE_MASK)