History

Merge pull request #5167 from SamGondelman/hmdControls

hmdControls.js for movement when wearing an HMD

Ryan Huffman committed 11 years ago

Commit 4df1bea2 parents 584ecf7 a0d4b7e14 files · +350 −43Browse files

Showing the changes to interface/src/scripting/ControllerScriptingInterface.h (1 of 14 files). Show all

Unified · Split

interface/src/scripting/ControllerScriptingInterface.h+5−0
@@ -79,6 +79,7 @@ public: · 78 unmodified lines
7979 bool isMouseCaptured() const { return _mouseCaptured; }
8080 bool isTouchCaptured() const { return _touchCaptured; }
8181 bool isWheelCaptured() const { return _wheelCaptured; }
82+ bool areActionsCaptured() const { return _actionsCaptured; }
8283 bool isJoystickCaptured(int joystickIndex) const;
8384
8485 void updateInputControllers();
@@ -123,6 +124,9 @@ public slots: · 38 unmodified lines
123124
124125 virtual void captureWheelEvents() { _wheelCaptured = true; }
125126 virtual void releaseWheelEvents() { _wheelCaptured = false; }
127+
128+ virtual void captureActionEvents() { _actionsCaptured = true; }
129+ virtual void releaseActionEvents() { _actionsCaptured = false; }
126130
127131 virtual void captureJoystick(int joystickIndex);
128132 virtual void releaseJoystick(int joystickIndex);
@@ -143,6 +147,7 @@ private: · 14 unmodified lines
143147 bool _mouseCaptured;
144148 bool _touchCaptured;
145149 bool _wheelCaptured;
150+ bool _actionsCaptured;
146151 QMultiMap<int,KeyEvent> _capturedKeys;
147152 QSet<int> _capturedJoysticks;
148153