diff --git a/VisualC-GDK/SDL/SDL.vcxproj b/VisualC-GDK/SDL/SDL.vcxproj index e136005281..dd9a4600b0 100644 --- a/VisualC-GDK/SDL/SDL.vcxproj +++ b/VisualC-GDK/SDL/SDL.vcxproj @@ -503,7 +503,7 @@ - + diff --git a/VisualC-GDK/tests/testgdk/src/testgdk.cpp b/VisualC-GDK/tests/testgdk/src/testgdk.cpp index cd8f5e321c..b1818e5f7b 100644 --- a/VisualC-GDK/tests/testgdk/src/testgdk.cpp +++ b/VisualC-GDK/tests/testgdk/src/testgdk.cpp @@ -309,7 +309,7 @@ loop() /* Check for events */ while (SDL_PollEvent(&event)) { if (event.type == SDL_EVENT_KEY_DOWN && !event.key.repeat) { - SDL_Log("Initial SDL_EVENT_KEY_DOWN: %s", SDL_GetScancodeName(event.key.keysym.scancode)); + SDL_Log("Initial SDL_EVENT_KEY_DOWN: %s", SDL_GetScancodeName(event.key.scancode)); } #if defined(SDL_PLATFORM_XBOXONE) || defined(SDL_PLATFORM_XBOXSERIES) /* On Xbox, ignore the keydown event because the features aren't supported */ diff --git a/src/core/SDL_core_unsupported.c b/src/core/SDL_core_unsupported.c index d6f324d507..61bccf7cf6 100644 --- a/src/core/SDL_core_unsupported.c +++ b/src/core/SDL_core_unsupported.c @@ -227,13 +227,3 @@ Sint32 JNI_OnLoad(void *vm, void *reserved) return -1; /* JNI_ERR */ } #endif - -// !!! FIXME: this probably belongs in src/filesystem/gdk -#if defined(SDL_PLATFORM_XBOXONE) || defined(SDL_PLATFORM_XBOXSERIES) -const char *SDL_GetUserFolder(SDL_Folder folder) -{ - (void)folder; - SDL_Unsupported(); - return NULL; -} -#endif diff --git a/src/filesystem/gdk/SDL_sysfilesystem.cpp b/src/filesystem/gdk/SDL_sysfilesystem.cpp index fe9f13e2af..1295a29b5b 100644 --- a/src/filesystem/gdk/SDL_sysfilesystem.cpp +++ b/src/filesystem/gdk/SDL_sysfilesystem.cpp @@ -23,7 +23,9 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* System dependent filesystem routines */ +extern "C" { #include "../SDL_sysfilesystem.h" +} #include "../../core/windows/SDL_windows.h" #include @@ -133,5 +135,11 @@ char *SDL_SYS_GetPrefPath(const char *org, const char *app) return folderPath; } +/* TODO */ +char *SDL_SYS_GetUserFolder(SDL_Folder folder) +{ + SDL_Unsupported(); + return NULL; +} /* vi: set ts=4 sw=4 expandtab: */ diff --git a/src/video/windows/SDL_windowsvideo.c b/src/video/windows/SDL_windowsvideo.c index 4fd5135296..1fb88db9c6 100644 --- a/src/video/windows/SDL_windowsvideo.c +++ b/src/video/windows/SDL_windowsvideo.c @@ -306,7 +306,7 @@ static SDL_VideoDevice *WIN_CreateDevice(void) device->StartTextInput = GDK_StartTextInput; device->StopTextInput = GDK_StopTextInput; - device->SetTextInputArea = GDK_SetTextInputArea; + device->UpdateTextInputArea = GDK_UpdateTextInputArea; device->ClearComposition = GDK_ClearComposition; device->HasScreenKeyboardSupport = GDK_HasScreenKeyboardSupport;