Loading Assets/Scripts/Domain/Input/InputReader.cs +1 −7 Original line number Diff line number Diff line Loading @@ -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; Loading Loading
Assets/Scripts/Domain/Input/InputReader.cs +1 −7 Original line number Diff line number Diff line Loading @@ -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; Loading