Disable raw keyboard input by default

It interferes with keyboard hooks and most applications don't expect key events coming from another thread
This commit is contained in:
Sam Lantinga committed 2024-06-03 14:43:46 -07:00
1 parent 73879ef26e
commit a9a51cebde
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -54,7 +54,7 @@ SDL_bool g_WindowFrameUsableWhileCursorHidden = SDL_TRUE;
static void SDLCALL UpdateWindowsRawKeyboard(void *userdata, const char *name, const char *oldValue, const char *newValue)
{
SDL_VideoDevice *_this = (SDL_VideoDevice *)userdata;
SDL_bool enabled = SDL_GetStringBoolean(newValue, SDL_TRUE);
SDL_bool enabled = SDL_GetStringBoolean(newValue, SDL_FALSE);
WIN_SetRawKeyboardEnabled(_this, enabled);
}