mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-11 20:36:27 +00:00
The keycode in key events is the base, unmodified, keycode for the current keyboard layout
This commit is contained in:
@@ -302,11 +302,6 @@ class SDL_BLooper : public BLooper
|
||||
return;
|
||||
}
|
||||
|
||||
/* Make sure this isn't a repeated event (key pressed and held) */
|
||||
if (state == SDL_PRESSED && HAIKU_GetKeyState(scancode) == SDL_PRESSED) {
|
||||
return;
|
||||
}
|
||||
HAIKU_SetKeyState(scancode, state);
|
||||
SDL_SendKeyboardKey(0, SDL_DEFAULT_KEYBOARD_ID, scancode, HAIKU_GetScancodeFromBeKey(scancode), state);
|
||||
|
||||
win = GetSDLWindow(winID);
|
||||
|
Reference in New Issue
Block a user