History

Merge pull request #2700 from SydoxX/PageUp/Down

Add PageUp/Down to controls

Brad Hefta-Gaub committed 12 years ago

Commit b9dd2762 parents d848326 615f8b81 file · +4 −0Browse files

Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all

Unified · Split

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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t