Showing the changes to interface/src/scripting/ControllerScriptingInterface.cpp (1 of 6 files). Show all
Unified · Split
| @@ -60,6 +60,18 @@ void ControllerScriptingInterface::releaseKeyEvents(const KeyEvent& event) { · 59 unmodified lines | ||
| 60 | 60 | } |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | +bool ControllerScriptingInterface::areEntityClicksCaptured() const { | |
| 64 | + return _captureEntityClicks; | |
| 65 | +} | |
| 66 | + | |
| 67 | +void ControllerScriptingInterface::captureEntityClickEvents() { | |
| 68 | + _captureEntityClicks = true; | |
| 69 | +} | |
| 70 | + | |
| 71 | +void ControllerScriptingInterface::releaseEntityClickEvents() { | |
| 72 | + _captureEntityClicks = false; | |
| 73 | +} | |
| 74 | + | |
| 63 | 75 | bool ControllerScriptingInterface::isJoystickCaptured(int joystickIndex) const { |
| 64 | 76 | return _capturedJoysticks.contains(joystickIndex); |
| 65 | 77 | } |