Reevaluate movement possibilities when a key is released
This commit is contained in:
parent
144d620192
commit
25c60873bc
1 changed files with 2 additions and 0 deletions
|
@ -43,6 +43,8 @@ MapContext::MapContext(EventBus *eventBus0, InputHandler *inputHandler0, const s
|
|||
[this] (uint16_t key, bool pressed, uint64_t time) {
|
||||
if (pressed)
|
||||
keyPressed(key, time);
|
||||
else
|
||||
movePlayerContinue(time);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Reference in a new issue