Showing the changes to interface/src/Application.cpp (1 of 6 files). Show all
Unified · Split
| @@ -77,6 +77,7 @@ · 76 unmodified lines | ||
| 77 | 77 | #include <InfoView.h> |
| 78 | 78 | #include <input-plugins/InputPlugin.h> |
| 79 | 79 | #include <controllers/UserInputMapper.h> |
| 80 | +#include <controllers/InputRecorder.h> | |
| 80 | 81 | #include <controllers/ScriptingInterface.h> |
| 81 | 82 | #include <controllers/StateController.h> |
| 82 | 83 | #include <UserActivityLoggerScriptingInterface.h> |
| @@ -2731,6 +2732,9 @@ void Application::keyPressEvent(QKeyEvent* event) { · 2648 unmodified lines | ||
| 2731 | 2732 | if (isMeta) { |
| 2732 | 2733 | auto offscreenUi = DependencyManager::get<OffscreenUi>(); |
| 2733 | 2734 | offscreenUi->load("Browser.qml"); |
| 2735 | + } else if (isOption) { | |
| 2736 | + controller::InputRecorder* inputRecorder = controller::InputRecorder::getInstance(); | |
| 2737 | + inputRecorder->togglePlayback(); | |
| 2734 | 2738 | } |
| 2735 | 2739 | break; |
| 2736 | 2740 | |
| @@ -2929,6 +2933,9 @@ void Application::keyPressEvent(QKeyEvent* event) { · 192 unmodified lines | ||
| 2929 | 2933 | Menu::getInstance()->setIsOptionChecked(MenuOption::FirstPerson, !isFirstPersonChecked); |
| 2930 | 2934 | Menu::getInstance()->setIsOptionChecked(MenuOption::ThirdPerson, isFirstPersonChecked); |
| 2931 | 2935 | cameraMenuChanged(); |
| 2936 | + } else if (isOption) { | |
| 2937 | + controller::InputRecorder* inputRecorder = controller::InputRecorder::getInstance(); | |
| 2938 | + inputRecorder->toggleRecording(); | |
| 2932 | 2939 | } |
| 2933 | 2940 | break; |
| 2934 | 2941 | } |