-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SDL2 keyboard entry : hitting PadStar, PadSlash, PadPlus, or PadMinus…
… got you * followed by PADSTAR, / followed by PADSLASH, etc. Unfortunately, the first key was indistinguishable from a 'normal' asterisk/slash/etc. The only way to suppress the spurious keystroke I could see was to hold any of the offending four in abeyance for two milliseconds. If at the end of that time, we haven't received a PADx character, we can treat the *-/+ as 'real'. If we do receive a PADx character, we toss the *-/+ one. I think this is an SDL2 bug, and hope it's eventually fixed... but this workaround means PDCursesMod works even with defective SDL2.
- Loading branch information
Showing
1 changed file
with
25 additions
and
3 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