diff --git a/Assets/Scripts/Domain/Input/InputReader.cs b/Assets/Scripts/Domain/Input/InputReader.cs index 2f38bf8..82323d0 100644 --- a/Assets/Scripts/Domain/Input/InputReader.cs +++ b/Assets/Scripts/Domain/Input/InputReader.cs @@ -7,13 +7,7 @@ public void UpdateInput() { _wasPressed = _isPressed; - short keyState = Win32API.GetAsyncKeyState(Key); - - if (_wasPressed && keyState == 0) { - _isPressed = false; - }else if (!_isPressed && keyState != 0) { - _isPressed = true; - } + _isPressed = Win32API.GetAsyncKeyState(Key) != 0; } public bool KeyDown() => _isPressed && !_wasPressed;