Explorar o código

fixed isPressed() being triggered at frame 0

Nicolas Cannasse %!s(int64=4) %!d(string=hai) anos
pai
achega
0d32736ca0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      hxd/Key.hx

+ 1 - 1
hxd/Key.hx

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