From 6c376d6fa6701f981310dc1126fe1871f81ee368 Mon Sep 17 00:00:00 2001 From: Konstantin Date: Sat, 19 Apr 2014 15:02:57 +0200 Subject: [PATCH] Add PageUp/Down to controls When you press PageUp/Down now you fly up and down. --- interface/src/Application.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 0abcd9d1af..ca5bb260b6 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -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;