Tag Info

New answers tagged

0

What you can do is store boolean values for if the key was down or released and create some simple getters, a setter, and a "resetter" like so: struct Key { bool down; bool released; bool pressed; }; bool KeyInput::IsKeyDown(uint32 keyCode) { return s_keys[keyCode].down; } bool KeyInput::WasKeyPressed(uint32 keyCode) { return ...



Top 50 recent answers are included