Add PageUp/Down to controls
Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -822,6 +822,7 @@ void Application::keyPressEvent(QKeyEvent* event) { · 821 unmodified lines | ||
| 822 | 822 | break; |
| 823 | 823 | |
| 824 | 824 | case Qt::Key_E: |
| 825 | + case Qt::Key_PageUp: | |
| 825 | 826 | if (!_myAvatar->getDriveKeys(UP)) { |
| 826 | 827 | _myAvatar->jump(); |
| 827 | 828 | } |
| @@ -833,6 +834,7 @@ void Application::keyPressEvent(QKeyEvent* event) { · 5 unmodified lines | ||
| 833 | 834 | break; |
| 834 | 835 | |
| 835 | 836 | case Qt::Key_C: |
| 837 | + case Qt::Key_PageDown: | |
| 836 | 838 | _myAvatar->setDriveKeys(DOWN, 1.f); |
| 837 | 839 | break; |
| 838 | 840 | |
| @@ -1019,10 +1021,12 @@ void Application::keyReleaseEvent(QKeyEvent* event) { · 180 unmodified lines | ||
| 1019 | 1021 | |
| 1020 | 1022 | switch (event->key()) { |
| 1021 | 1023 | case Qt::Key_E: |
| 1024 | + case Qt::Key_PageUp: | |
| 1022 | 1025 | _myAvatar->setDriveKeys(UP, 0.f); |
| 1023 | 1026 | break; |
| 1024 | 1027 | |
| 1025 | 1028 | case Qt::Key_C: |
| 1029 | + case Qt::Key_PageDown: | |
| 1026 | 1030 | _myAvatar->setDriveKeys(DOWN, 0.f); |
| 1027 | 1031 | break; |
| 1028 | 1032 | |