-
-
Notifications
You must be signed in to change notification settings - Fork 462
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SDL: don't ignore briefly pressed keys (#2553)
Some keyboards send KEY_DOWN/KEY_UP immediately in sequence to support things like dual-purpose keys. This change updates the SDL key handler to detect when a key is pressed and released within a single frame, and to propagate that key's state as down for the duration of the frame, rather than just drop the event entirely.
- Loading branch information
1 parent
a3823b3
commit deae9c6
Showing
1 changed file
with
18 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters