History

reset view

- reset icon - resetView signal

stojce committed 13 years ago

Commit 4fe99641 parent b09e6575 files · +16 −6Browse files

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

Unified · Split

interface/src/Application.cpp+3−1
@@ -685,7 +685,6 @@ void Application::keyPressEvent(QKeyEvent* event) { · 684 unmodified lines
685685
686686 case Qt::Key_Space:
687687 resetSensors();
688− _audio.reset();
689688 break;
690689
691690 case Qt::Key_G:
@@ -1724,6 +1723,7 @@ void Application::init() { · 1032 unmodified lines
17241723 connect(_rearMirrorTools, SIGNAL(closeView()), SLOT(closeMirrorView()));
17251724 connect(_rearMirrorTools, SIGNAL(restoreView()), SLOT(restoreMirrorView()));
17261725 connect(_rearMirrorTools, SIGNAL(shrinkView()), SLOT(shrinkMirrorView()));
1726+ connect(_rearMirrorTools, SIGNAL(resetView()), SLOT(resetSensors()));
17271727 }
17281728
17291729 void Application::closeMirrorView() {
@@ -3777,6 +3777,8 @@ void Application::resetSensors() { · 2047 unmodified lines
37773777 _myTransmitter.resetLevels();
37783778 _myAvatar.setVelocity(glm::vec3(0,0,0));
37793779 _myAvatar.setThrust(glm::vec3(0,0,0));
3780+
3781+ _audio.reset();
37803782 }
37813783
37823784 static void setShortcutsEnabled(QWidget* widget, bool enabled) {

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