Showing the changes to libraries/script-engine/src/EventTypes.cpp (1 of 35 files). Show all
Unified · Split
| @@ -22,10 +22,10 @@ · 21 unmodified lines | ||
| 22 | 22 | #include "WheelEvent.h" |
| 23 | 23 | |
| 24 | 24 | void registerEventTypes(ScriptEngine* engine) { |
| 25 | − scriptRegisterMetaType(engine, KeyEvent::toScriptValue, KeyEvent::fromScriptValue, "KeyEvent"); | |
| 26 | − scriptRegisterMetaType(engine, MouseEvent::toScriptValue, MouseEvent::fromScriptValue, "MouseEvent"); | |
| 27 | − scriptRegisterMetaType(engine, PointerEvent::toScriptValue, PointerEvent::fromScriptValue, "PointerEvent"); | |
| 28 | − scriptRegisterMetaType(engine, TouchEvent::toScriptValue, TouchEvent::fromScriptValue, "TouchEvent"); | |
| 29 | − scriptRegisterMetaType(engine, WheelEvent::toScriptValue, WheelEvent::fromScriptValue, "WheelEvent"); | |
| 30 | − scriptRegisterMetaType(engine, SpatialEvent::toScriptValue, SpatialEvent::fromScriptValue, "SpatialEvent"); | |
| 25 | + scriptRegisterMetaType<KeyEvent, KeyEvent::toScriptValue, KeyEvent::fromScriptValue>(engine, "KeyEvent"); | |
| 26 | + scriptRegisterMetaType<MouseEvent, MouseEvent::toScriptValue, MouseEvent::fromScriptValue>(engine, "MouseEvent"); | |
| 27 | + scriptRegisterMetaType<PointerEvent, PointerEvent::toScriptValue, PointerEvent::fromScriptValue>(engine, "PointerEvent"); | |
| 28 | + scriptRegisterMetaType<TouchEvent, TouchEvent::toScriptValue, TouchEvent::fromScriptValue>(engine, "TouchEvent"); | |
| 29 | + scriptRegisterMetaType<WheelEvent, WheelEvent::toScriptValue, WheelEvent::fromScriptValue>(engine, "WheelEvent"); | |
| 30 | + scriptRegisterMetaType<SpatialEvent, SpatialEvent::toScriptValue, SpatialEvent::fromScriptValue>(engine, "SpatialEvent"); | |
| 31 | 31 | } |