浏览代码

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 ) {