mirror of
https://github.com/sojamo/controlp5
synced 2025-03-13 16:21:42 +01:00
Merge bbd28010e53d55df926e34c071d743f11464c8af into 1f7cb649865eb8657495b5cfeddd0dbe85d70cac
This commit is contained in:
commit
9a3473ca54
2
.gitignore
vendored
2
.gitignore
vendored
@ -9,3 +9,5 @@
|
||||
.buildpath
|
||||
.classpath
|
||||
.project
|
||||
.idea
|
||||
pom.xml
|
@ -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++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user