History

Remove old Leap Motion code

David Rowe committed 9 years ago

Commit a8501a71 parent 9c928f112 files · +0 −1464Browse files

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

Unified · Split

interface/src/scripting/ControllerScriptingInterface.h+0−40
@@ -25,38 +25,6 @@ · 24 unmodified lines
2525 #include <WheelEvent.h>
2626 class ScriptEngine;
2727
28−class PalmData;
29−
30−class InputController : public controller::InputController {
31− Q_OBJECT
32−
33−public:
34− InputController(int deviceTrackerId, int subTrackerId, QObject* parent = NULL);
35−
36− virtual void update() override;
37− virtual Key getKey() const override;
38−
39−public slots:
40−
41− virtual bool isActive() const override { return _isActive; }
42− virtual glm::vec3 getAbsTranslation() const override { return _eventCache.absTranslation; }
43− virtual glm::quat getAbsRotation() const override { return _eventCache.absRotation; }
44− virtual glm::vec3 getLocTranslation() const override { return _eventCache.locTranslation; }
45− virtual glm::quat getLocRotation() const override { return _eventCache.locRotation; }
46−
47−private:
48−
49− int _deviceTrackerId;
50− uint _subTrackerId;
51−
52− // cache for the spatial
53− SpatialEvent _eventCache;
54− bool _isActive;
55−
56−signals:
57−};
58−
59−
6028 /// handles scripting of input controller commands from JS
6129 class ControllerScriptingInterface : public controller::ScriptingInterface {
6230 Q_OBJECT
@@ -86,8 +54,6 @@ public: · 23 unmodified lines
8654 bool isJoystickCaptured(int joystickIndex) const;
8755 bool areEntityClicksCaptured() const;
8856
89− void updateInputControllers();
90−
9157 public slots:
9258
9359 virtual void captureKeyEvents(const KeyEvent& event);
@@ -102,10 +68,6 @@ public slots: · 8 unmodified lines
10268 virtual glm::vec2 getViewportDimensions() const;
10369 virtual QVariant getRecommendedOverlayRect() const;
10470
105− /// Factory to create an InputController
106− virtual controller::InputController* createInputController(const QString& deviceName, const QString& tracker);
107− virtual void releaseInputController(controller::InputController* input);
108−
10971 signals:
11072 void keyPressEvent(const KeyEvent& event);
11173 void keyReleaseEvent(const KeyEvent& event);
@@ -135,8 +97,6 @@ private: · 23 unmodified lines
13597 bool _captureEntityClicks;
13698
13799 using InputKey = controller::InputController::Key;
138− using InputControllerMap = std::map<InputKey, controller::InputController::Pointer>;
139− InputControllerMap _inputControllers;
140100 };
141101
142102 const int NUMBER_OF_SPATIALCONTROLS_PER_PALM = 2; // the hand and the tip