mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-05-16 20:48:46 +00:00
Making menues selectable by keyboard or controller
This commit is contained in:
@@ -30,7 +30,7 @@ namespace BBM
|
||||
};
|
||||
|
||||
for (auto key : keyPressedMap)
|
||||
key.second = gamepad.isPressed(key.first);
|
||||
key.second = gamepad.isDown(key.first);
|
||||
controllable.move.x = gamepad.getAxisValue(gamepadComponent.LeftStickX) * -1;
|
||||
controllable.move.y = gamepad.getAxisValue(gamepadComponent.LeftStickY) * -1;
|
||||
controllable.move.x -= gamepad.isDown(gamepadComponent.keyRight);
|
||||
|
||||
Reference in New Issue
Block a user