Skip to content
Snippets Groups Projects
Commit 22d1800d authored by Mirko Wächter's avatar Mirko Wächter
Browse files

platform gui: fixed keyboard control

parent c2c991f6
No related branches found
No related tags found
No related merge requests found
......@@ -230,7 +230,7 @@ void PlatformUnitWidget::controlPlatformWithKeyboard(int key)
switch (key)
{
case Qt::Key_A:
position.rx() -= 1;
rotation.rx() = -1;
break;
case Qt::Key_W:
position.ry() -= 1;
......@@ -239,13 +239,13 @@ void PlatformUnitWidget::controlPlatformWithKeyboard(int key)
position.ry() += 1;
break;
case Qt::Key_D:
position.rx() += 1;
rotation.rx() = 1;
break;
case Qt::Key_Q:
rotation.rx() = -1;
position.rx() -= 1;
break;
case Qt::Key_E:
rotation.rx() = 1;
position.rx() += 1;
break;
default:
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment