- reset icon - resetView signal
Showing the changes to interface/src/Application.cpp (1 of 5 files). Show all
Unified · Split
| @@ -685,7 +685,6 @@ void Application::keyPressEvent(QKeyEvent* event) { · 684 unmodified lines | |||
| 685 | 685 | ||
| 686 | case Qt::Key_Space: | 686 | case Qt::Key_Space: |
| 687 | resetSensors(); | 687 | resetSensors(); |
| 688 | _audio.reset(); | ||
| 689 | break; | 688 | break; |
| 690 | 689 | ||
| 691 | case Qt::Key_G: | 690 | case Qt::Key_G: |
| @@ -1724,6 +1723,7 @@ void Application::init() { · 1032 unmodified lines | |||
| 1724 | connect(_rearMirrorTools, SIGNAL(closeView()), SLOT(closeMirrorView())); | 1723 | connect(_rearMirrorTools, SIGNAL(closeView()), SLOT(closeMirrorView())); |
| 1725 | connect(_rearMirrorTools, SIGNAL(restoreView()), SLOT(restoreMirrorView())); | 1724 | connect(_rearMirrorTools, SIGNAL(restoreView()), SLOT(restoreMirrorView())); |
| 1726 | connect(_rearMirrorTools, SIGNAL(shrinkView()), SLOT(shrinkMirrorView())); | 1725 | connect(_rearMirrorTools, SIGNAL(shrinkView()), SLOT(shrinkMirrorView())); |
| 1726 | connect(_rearMirrorTools, SIGNAL(resetView()), SLOT(resetSensors())); | ||
| 1727 | } | 1727 | } |
| 1728 | 1728 | ||
| 1729 | void Application::closeMirrorView() { | 1729 | void Application::closeMirrorView() { |
| @@ -3777,6 +3777,8 @@ void Application::resetSensors() { · 2047 unmodified lines | |||
| 3777 | _myTransmitter.resetLevels(); | 3777 | _myTransmitter.resetLevels(); |
| 3778 | _myAvatar.setVelocity(glm::vec3(0,0,0)); | 3778 | _myAvatar.setVelocity(glm::vec3(0,0,0)); |
| 3779 | _myAvatar.setThrust(glm::vec3(0,0,0)); | 3779 | _myAvatar.setThrust(glm::vec3(0,0,0)); |
| 3780 | |||
| 3781 | _audio.reset(); | ||
| 3780 | } | 3782 | } |
| 3781 | 3783 | ||
| 3782 | static void setShortcutsEnabled(QWidget* widget, bool enabled) { | 3784 | static void setShortcutsEnabled(QWidget* widget, bool enabled) { |