This commit is contained in:
OpenSourceRadionics 2018-07-12 05:57:58 +00:00 committed by GitHub
commit 9a3473ca54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

2
.gitignore vendored
View File

@ -9,3 +9,5 @@
.buildpath
.classpath
.project
.idea
pom.xml

View File

@ -458,6 +458,11 @@ public final class ControlWindow {
public void keyEvent( KeyEvent theKeyEvent ) {
if (theKeyEvent.getKeyCode() > numKeys) {
// Something is wrong, a key was typed which is not mapped!
return;
}
if ( theKeyEvent.getAction( ) == KeyEvent.PRESS ) {
keys[ theKeyEvent.getKeyCode( ) ] = true;
numOfActiveKeys++;