소스 검색

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