mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-11 04:48:33 +00:00
fixing keyboard (he was switching between a and d)
This commit is contained in:
@@ -31,9 +31,9 @@ namespace BBM
|
||||
key.second = Keyboard::isPressed(key.first);
|
||||
controllable.move = Vector2f();
|
||||
if (Keyboard::isDown(keyboard.keyRight))
|
||||
controllable.move.x += 1;
|
||||
if (Keyboard::isDown(keyboard.keyLeft))
|
||||
controllable.move.x -= 1;
|
||||
if (Keyboard::isDown(keyboard.keyLeft))
|
||||
controllable.move.x += 1;
|
||||
if (Keyboard::isDown(keyboard.keyUp))
|
||||
controllable.move.y += 1;
|
||||
if (Keyboard::isDown(keyboard.keyDown))
|
||||
|
||||
Reference in New Issue
Block a user