forked from luanti-org/luanti
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CIrrDeviceSDL: Fix numpad key events not having correct KeyInput.Char (…
…luanti-org#14780) Allows you to change viewing range using numpad +/- again. This fix also works with the current unreleased version of SDL 3. The keycodes for numpad keys (both SDL keycodes and Irrlicht keycodes) are not the same as the keycodes for the equivalent non-numpad keys and don't correspond to chars, so I mapped them to chars manually. Since I think the resolution of luanti-org#13770 was "just disable numlock", I made sure to only do this for the numpad number keys if numlock is enabled.
- Loading branch information
Showing
2 changed files
with
56 additions
and
11 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
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