Explorar el Código

prevent frame 0 => isPressed

ncannasse hace 7 años
padre
commit
7153e226d4
Se han modificado 1 ficheros con 1 adiciones y 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 ) {