Run keyboard command processing on every key event to make sure none are missed.

This commit is contained in:
mjbudd77 2021-03-25 04:50:31 -04:00
parent b810164759
commit 739dc2a16d
1 changed files with 4 additions and 2 deletions

View File

@ -1190,6 +1190,8 @@ UpdatePhysicalInput ()
g_keyState[ event.key.keysym.scancode ] = (event.type == SDL_KEYDOWN) ? 1 : 0;
KeyboardCommands();
break;
case SDL_JOYDEVICEADDED:
AddJoystick( event.jdevice.which );