fixing keyboard (he was switching between a and d)

This commit is contained in:
Clément Le Bihan
2021-06-08 18:37:57 +02:00
parent 44afd5cd44
commit efacfb53e3
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -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))