Showing the changes to libraries/script-engine/src/EventTypes.cpp (1 of 9 files). Show all
Unified · Split
| @@ -9,6 +9,7 @@ · 8 unmodified lines | ||
| 9 | 9 | // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html |
| 10 | 10 | // |
| 11 | 11 | |
| 12 | +#include "HFActionEvent.h" | |
| 12 | 13 | #include "KeyEvent.h" |
| 13 | 14 | #include "MouseEvent.h" |
| 14 | 15 | #include "SpatialEvent.h" |
| @@ -18,6 +19,7 @@ · 3 unmodified lines | ||
| 18 | 19 | #include "EventTypes.h" |
| 19 | 20 | |
| 20 | 21 | void registerEventTypes(QScriptEngine* engine) { |
| 22 | + qScriptRegisterMetaType(engine, HFActionEvent::toScriptValue, HFActionEvent::fromScriptValue); | |
| 21 | 23 | qScriptRegisterMetaType(engine, KeyEvent::toScriptValue, KeyEvent::fromScriptValue); |
| 22 | 24 | qScriptRegisterMetaType(engine, MouseEvent::toScriptValue, MouseEvent::fromScriptValue); |
| 23 | 25 | qScriptRegisterMetaType(engine, TouchEvent::toScriptValue, TouchEvent::fromScriptValue); |