Преглед изворни кода

prevent frame 0 => isPressed

ncannasse пре 7 година
родитељ
комит
7153e226d4
1 измењених фајлова са 1 додато и 1 уклоњено
  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 ) {