History

CR feedback new class names

ZappoMan committed 12 years ago

Commit 70e97811 parent a59650b6 files · +19 −19Browse files

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

Unified · Split

interface/src/ControllerScriptingInterface.h+28−0
@@ -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__) */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t