Showing the changes to interface/src/scripting/ControllerScriptingInterface.h (1 of 6 files). Show all
Unified · Split
| @@ -84,6 +84,7 @@ public: · 83 unmodified lines | ||
| 84 | 84 | bool isKeyCaptured(QKeyEvent* event) const; |
| 85 | 85 | bool isKeyCaptured(const KeyEvent& event) const; |
| 86 | 86 | bool isJoystickCaptured(int joystickIndex) const; |
| 87 | + bool areEntityClicksCaptured() const; | |
| 87 | 88 | |
| 88 | 89 | void updateInputControllers(); |
| 89 | 90 | |
| @@ -95,6 +96,9 @@ public slots: · 5 unmodified lines | ||
| 95 | 96 | virtual void captureJoystick(int joystickIndex); |
| 96 | 97 | virtual void releaseJoystick(int joystickIndex); |
| 97 | 98 | |
| 99 | + virtual void captureEntityClickEvents(); | |
| 100 | + virtual void releaseEntityClickEvents(); | |
| 101 | + | |
| 98 | 102 | virtual glm::vec2 getViewportDimensions() const; |
| 99 | 103 | virtual QVariant getRecommendedOverlayRect() const; |
| 100 | 104 | |
| @@ -128,6 +132,7 @@ private: · 27 unmodified lines | ||
| 128 | 132 | |
| 129 | 133 | QMultiMap<int,KeyEvent> _capturedKeys; |
| 130 | 134 | QSet<int> _capturedJoysticks; |
| 135 | + bool _captureEntityClicks; | |
| 131 | 136 | |
| 132 | 137 | using InputKey = controller::InputController::Key; |
| 133 | 138 | using InputControllerMap = std::map<InputKey, controller::InputController::Pointer>; |