History

send global HFActionEvent from ControllerScriptingInterface

Stephen Birarda committed 12 years ago

Commit c3fe7c71 parent 76493599 files · +46 −7Browse files

Showing the changes to libraries/script-engine/src/EventTypes.cpp (1 of 9 files). Show all

Unified · Split

libraries/script-engine/src/EventTypes.cpp+2−0
@@ -9,6 +9,7 @@ · 8 unmodified lines
99 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
1010 //
1111
12+#include "HFActionEvent.h"
1213 #include "KeyEvent.h"
1314 #include "MouseEvent.h"
1415 #include "SpatialEvent.h"
@@ -18,6 +19,7 @@ · 3 unmodified lines
1819 #include "EventTypes.h"
1920
2021 void registerEventTypes(QScriptEngine* engine) {
22+ qScriptRegisterMetaType(engine, HFActionEvent::toScriptValue, HFActionEvent::fromScriptValue);
2123 qScriptRegisterMetaType(engine, KeyEvent::toScriptValue, KeyEvent::fromScriptValue);
2224 qScriptRegisterMetaType(engine, MouseEvent::toScriptValue, MouseEvent::fromScriptValue);
2325 qScriptRegisterMetaType(engine, TouchEvent::toScriptValue, TouchEvent::fromScriptValue);

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