Showing the changes to interface/src/ControllerScriptingInterface.h (1 of 6 files). Show all
Unified · Split
| @@ -0,0 +1,28 @@ | ||
| 1 | +// | |
| 2 | +// ControllerScriptingInterface.h | |
| 3 | +// hifi | |
| 4 | +// | |
| 5 | +// Created by Brad Hefta-Gaub on 12/17/13 | |
| 6 | +// Copyright (c) 2013 HighFidelity, Inc. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#ifndef __hifi__InterfaceControllerScriptingInterface__ | |
| 10 | +#define __hifi__InterfaceControllerScriptingInterface__ | |
| 11 | + | |
| 12 | +#include <QtCore/QObject> | |
| 13 | + | |
| 14 | +#include <AbstractControllerScriptingInterface.h> | |
| 15 | + | |
| 16 | +/// handles scripting of input controller commands from JS | |
| 17 | +class ControllerScriptingInterface : public AbstractControllerScriptingInterface { | |
| 18 | + Q_OBJECT | |
| 19 | + | |
| 20 | +public slots: | |
| 21 | + virtual bool isPrimaryButtonPressed() const; | |
| 22 | + virtual glm::vec2 getPrimaryJoystickPosition() const; | |
| 23 | + | |
| 24 | +private: | |
| 25 | + const PalmData* getPrimaryPalm() const; | |
| 26 | +}; | |
| 27 | + | |
| 28 | +#endif /* defined(__hifi__InterfaceControllerScriptingInterface__) */ | |