2
0
Эх сурвалжийг харах

fixed isPressed() being triggered at frame 0

Nicolas Cannasse 4 жил өмнө
parent
commit
0d32736ca0
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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 ) {