Explorar o código

prevent frame 0 => isPressed

ncannasse %!s(int64=7) %!d(string=hai) anos
pai
achega
7153e226d4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 ) {