History

really get controller key, mouse, etc scripting working

ZappoMan committed 12 years ago

Commit 305e69d1 parent febb3067 files · +220 −66Browse files

Showing the changes to libraries/script-engine/src/AbstractControllerScriptingInterface.h (1 of 7 files). Show all

Unified · Split

libraries/script-engine/src/AbstractControllerScriptingInterface.h+13−0
@@ -38,6 +38,19 @@ public slots: · 37 unmodified lines
38 virtual glm::vec3 getSpatialControlVelocity(int controlIndex) const = 0;38 virtual glm::vec3 getSpatialControlVelocity(int controlIndex) const = 0;
39 virtual glm::vec3 getSpatialControlNormal(int controlIndex) const = 0;39 virtual glm::vec3 getSpatialControlNormal(int controlIndex) const = 0;
40 40
41 virtual void captureKeyEvents(const KeyEvent& event) = 0;
42 virtual void releaseKeyEvents(const KeyEvent& event) = 0;
43
44 virtual void captureMouseEvents() = 0;
45 virtual void releaseMouseEvents() = 0;
46
47 virtual void captureTouchEvents() = 0;
48 virtual void releaseTouchEvents() = 0;
49
50 virtual void captureWheelEvents() = 0;
51 virtual void releaseWheelEvents() = 0;
52
53
41signals:54signals:
42 void keyPressEvent(const KeyEvent& event);55 void keyPressEvent(const KeyEvent& event);
43 void keyReleaseEvent(const KeyEvent& event);56 void keyReleaseEvent(const KeyEvent& event);