Showing the changes to libraries/script-engine/src/AbstractControllerScriptingInterface.h (1 of 6 files). Show all
Unified · Split
| @@ -0,0 +1,24 @@ | ||
| 1 | +// | |
| 2 | +// AbstractControllerScriptingInterface.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__AbstractControllerScriptingInterface__ | |
| 10 | +#define __hifi__AbstractControllerScriptingInterface__ | |
| 11 | + | |
| 12 | +#include <QtCore/QObject> | |
| 13 | +#include <glm/glm.hpp> | |
| 14 | + | |
| 15 | +/// handles scripting of input controller commands from JS | |
| 16 | +class AbstractControllerScriptingInterface : public QObject { | |
| 17 | + Q_OBJECT | |
| 18 | + | |
| 19 | +public slots: | |
| 20 | + virtual bool isPrimaryButtonPressed() const = 0; | |
| 21 | + virtual glm::vec2 getPrimaryJoystickPosition() const = 0; | |
| 22 | +}; | |
| 23 | + | |
| 24 | +#endif /* defined(__hifi__AbstractControllerScriptingInterface__) */ | |