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
822822 break;
823823
824824 case Qt::Key_E:
825+ case Qt::Key_PageUp:
825826 if (!_myAvatar->getDriveKeys(UP)) {
826827 _myAvatar->jump();
827828 }
@@ -833,6 +834,7 @@ void Application::keyPressEvent(QKeyEvent* event) { · 5 unmodified lines
833834 break;
834835
835836 case Qt::Key_C:
837+ case Qt::Key_PageDown:
836838 _myAvatar->setDriveKeys(DOWN, 1.f);
837839 break;
838840
@@ -1019,10 +1021,12 @@ void Application::keyReleaseEvent(QKeyEvent* event) { · 180 unmodified lines
10191021
10201022 switch (event->key()) {
10211023 case Qt::Key_E:
1024+ case Qt::Key_PageUp:
10221025 _myAvatar->setDriveKeys(UP, 0.f);
10231026 break;
10241027
10251028 case Qt::Key_C:
1029+ case Qt::Key_PageDown:
10261030 _myAvatar->setDriveKeys(DOWN, 0.f);
10271031 break;
10281032

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