We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent abcb48e commit 4c7026fCopy full SHA for 4c7026f
1 file changed
src/com/javagamemaker/javagameengine/input/Input.java
@@ -112,9 +112,13 @@ public static boolean isKeyPressed(int keyCode){
112
keyDowns.remove(Integer.valueOf(keyCode));
113
return pressed;
114
}
115
-
116
117
public static void setMousePressed(int i) {
118
mouseIsPressed = i;
119
+ public static int getKeyDown(){
+ try{
120
+ return keyDowns.getFirst();
121
+ }catch (Exception e){}
122
+ return 0;
123
+ }
124
0 commit comments