浏览代码

fixed isPressed() being triggered at frame 0

Nicolas Cannasse 4 年之前
父节点
当前提交
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 ) {