Browse Source

prevent frame 0 => isPressed

ncannasse 7 years ago
parent
commit
7153e226d4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hxd/Key.hx

+ 1 - 1
hxd/Key.hx

@@ -130,7 +130,7 @@ class Key {
 	}
 
 	public static inline function getFrame() {
-		return hxd.Timer.frameCount;
+		return hxd.Timer.frameCount + 1;
 	}
 
 	public static function isPressed( code : Int ) {