mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-05-28 00:31:50 +00:00
Finishing the replay button
This commit is contained in:
@@ -21,8 +21,11 @@ namespace BBM
|
||||
{
|
||||
const auto &gamepadComponent = entity.get<GamepadComponent>();
|
||||
auto &controllable = entity.get<ControllableComponent>();
|
||||
Gamepad gamepad(gamepadComponent.getID());
|
||||
|
||||
if (controllable.disabled)
|
||||
return;
|
||||
|
||||
Gamepad gamepad(gamepadComponent.getID());
|
||||
const std::map<Button, bool &> keyPressedMap = {
|
||||
{gamepadComponent.keyJump, controllable.select},
|
||||
{gamepadComponent.keyBomb, controllable.bomb},
|
||||
|
||||
Reference in New Issue
Block a user