mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-01-01 03:28:54 +01:00
Fixed user input iterate over key handlers loop length
This commit is contained in:
parent
7564e317af
commit
60d474d87e
@ -270,7 +270,7 @@ bool UserInput::update(SDL_Event &e)
|
||||
memcpy(lastKeyState_, currentKeyState_, sizeof(lastKeyState_));
|
||||
memset(currentKeyState_, 0, sizeof(currentKeyState_));
|
||||
|
||||
for(unsigned int i = 0; i < KeyCodeMax; ++i)
|
||||
for (unsigned int i = 0; i < keyHandlers_.size(); ++i)
|
||||
{
|
||||
InputHandler *h = keyHandlers_[i].first;
|
||||
if(h)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user