Added support for multiple distinct keyboards
This commit is contained in:
parent
78c7834f90
commit
f1f24b173c
5 changed files with 196 additions and 16 deletions
|
@ -945,9 +945,6 @@ static int SDL_SendKeyboardKeyInternal(Uint64 timestamp, Uint32 flags, SDL_Keybo
|
|||
Uint8 repeat = SDL_FALSE;
|
||||
const Uint8 source = flags & KEYBOARD_SOURCE_MASK;
|
||||
|
||||
/* We currently don't have raw keyboard mode, so all key events are global */
|
||||
keyboardID = SDL_GLOBAL_KEYBOARD_ID;
|
||||
|
||||
if (scancode == SDL_SCANCODE_UNKNOWN || scancode >= SDL_NUM_SCANCODES) {
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue