Removed SDL_Keysym

This commit is contained in:
Sam Lantinga committed 2024-06-21 22:06:08 -07:00
1 parent 679e4471ed
commit 0dd579d40d
35 files changed
+150 -150

No files matched your search

+1 -1
View File
@@ -198,7 +198,7 @@ int SDL_AppEvent(void *appstate, const SDL_Event *event)
{
switch (event->type) {
case SDL_EVENT_KEY_DOWN: {
const SDL_Keycode sym = event->key.keysym.sym;
const SDL_Keycode sym = event->key.key;
if (sym == SDLK_ESCAPE || sym == SDLK_AC_BACK) {
SDL_Log("Key : Escape!");
return SDL_APP_SUCCESS;