Fixed movement stopping on gamepads when button is pressed
This commit is contained in:
parent
cdc8fedfeb
commit
4dae13150f
1 changed files with 6 additions and 2 deletions
|
@ -60,8 +60,10 @@ struct InputIdentity
|
||||||
{
|
{
|
||||||
current_actions.insert(action);
|
current_actions.insert(action);
|
||||||
}
|
}
|
||||||
|
if (button.direction != HardDirection::NONE) {
|
||||||
direction.add(button.direction);
|
direction.add(button.direction);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void release(const ButtonConfig &button)
|
void release(const ButtonConfig &button)
|
||||||
{
|
{
|
||||||
|
@ -69,8 +71,10 @@ struct InputIdentity
|
||||||
{
|
{
|
||||||
current_actions.erase(action);
|
current_actions.erase(action);
|
||||||
}
|
}
|
||||||
|
if (button.direction != HardDirection::NONE) {
|
||||||
direction.remove(button.direction);
|
direction.remove(button.direction);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void update()
|
void update()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue