diff --git a/GlitchyEngine/src/Platform/Windows/WindowsInput.bf b/GlitchyEngine/src/Platform/Windows/WindowsInput.bf index 711b92a..5482d47 100644 --- a/GlitchyEngine/src/Platform/Windows/WindowsInput.bf +++ b/GlitchyEngine/src/Platform/Windows/WindowsInput.bf @@ -51,13 +51,13 @@ namespace GlitchyEngine // public override static bool WasKeyPressed(Key keycode) { - int8 state = CurrentState.KeyStates[(int)keycode]; + int8 state = LastState.KeyStates[(int)keycode]; return state < 0; } public override static bool WasKeyReleased(Key keycode) { - int8 state = CurrentState.KeyStates[(int)keycode]; + int8 state = LastState.KeyStates[(int)keycode]; return state >= 0; }