Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use proper game style keyboard handling
Instead of just reponding to key presses/releases (and auto repeat versions of these), instead track which keys are held down continuously and use a timer based approach to handle the actual resultant camera movement. This allows use of multiple keys when navigating, e.g. moving forward while strafing left/right/up/down.
- Loading branch information
1 parent
7f3b407
commit ea5b4cb
Showing
2 changed files
with
53 additions
and
30 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