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:
Sam Lantinga 2025-03-20 16:00:04 -07:00
parent cbb83be895
commit 8caeaaacdd
4 changed files with 1 additions and 29 deletions

View file

@ -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()) {