A Steam Controller might be generating keyboard input
We can't use keyboard input as a signal about whether a keyboard is attached. There might be keyboard input from any number of generated inputs or non-keyboard devices.
This commit is contained in:
parent
cbb83be895
commit
8caeaaacdd
4 changed files with 1 additions and 29 deletions
|
@ -2368,11 +2368,6 @@ void SDL_SendJoystickButton(Uint64 timestamp, SDL_Joystick *joystick, Uint8 butt
|
|||
return;
|
||||
}
|
||||
|
||||
if (!joystick->is_virtual) {
|
||||
// Primary input appears to be a joystick
|
||||
SDL_SetKeyboardActive(false);
|
||||
}
|
||||
|
||||
/* We ignore events if we don't have keyboard focus, except for button
|
||||
* release. */
|
||||
if (SDL_PrivateJoystickShouldIgnoreEvent()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue