Przeglądaj źródła

fixed isPressed() being triggered at frame 0

Nicolas Cannasse 4 lat temu
rodzic
commit
0d32736ca0
1 zmienionych plików z 1 dodań i 1 usunięć
  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 ) {