Set currentKeyState_ to false when resetting the key states.

This commit is contained in:
Pieter Hulshoff 2017-01-07 09:42:32 +01:00
parent 961a3a838d
commit 04bf1a2644

View File

@ -238,8 +238,10 @@ void UserInput::resetStates()
{ {
keyHandlers_[i]->reset(); keyHandlers_[i]->reset();
} }
currentKeyState_[i] = false;
} }
} }
bool UserInput::update(SDL_Event &e) bool UserInput::update(SDL_Event &e)
{ {
bool updated = false; bool updated = false;