Add PageUp/Down to controls

When you press PageUp/Down now you fly up and down.
This commit is contained in:
Konstantin 2014-04-19 15:02:57 +02:00
parent d489e9dcd4
commit 6c376d6fa6

View file

@ -821,7 +821,7 @@ void Application::keyPressEvent(QKeyEvent* event) {
}
break;
case Qt::Key_E:
case Qt::Key_E: case Qt::Key_PageUp:
if (!_myAvatar->getDriveKeys(UP)) {
_myAvatar->jump();
}
@ -832,7 +832,7 @@ void Application::keyPressEvent(QKeyEvent* event) {
Menu::getInstance()->triggerOption(MenuOption::Stars);
break;
case Qt::Key_C:
case Qt::Key_C: case Qt::Key_PageDown:
_myAvatar->setDriveKeys(DOWN, 1.f);
break;
@ -1018,11 +1018,11 @@ void Application::keyReleaseEvent(QKeyEvent* event) {
}
switch (event->key()) {
case Qt::Key_E:
case Qt::Key_E: case Qt::Key_PageUp:
_myAvatar->setDriveKeys(UP, 0.f);
break;
case Qt::Key_C:
case Qt::Key_C: case Qt::Key_PageDown:
_myAvatar->setDriveKeys(DOWN, 0.f);
break;