Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 7 files). Show all
Unified · Split
| @@ -2118,6 +2118,16 @@ void EntityScriptingInterface::setKeyboardFocusEntity(const EntityItemID& id) { · 2117 unmodified lines | |||
| 2118 | QMetaObject::invokeMethod(qApp, "setKeyboardFocusEntity", Qt::DirectConnection, Q_ARG(EntityItemID, id)); | 2118 | QMetaObject::invokeMethod(qApp, "setKeyboardFocusEntity", Qt::DirectConnection, Q_ARG(EntityItemID, id)); |
| 2119 | } | 2119 | } |
| 2120 | 2120 | ||
| 2121 | QUuid EntityScriptingInterface::getKeyboardFocusLocalEntity() const { | ||
| 2122 | QUuid result; | ||
| 2123 | QMetaObject::invokeMethod(qApp, "getKeyboardFocusLocalEntity", Qt::DirectConnection, Q_RETURN_ARG(QUuid, result)); | ||
| 2124 | return result; | ||
| 2125 | } | ||
| 2126 | |||
| 2127 | void EntityScriptingInterface::setKeyboardFocusLocalEntity(const EntityItemID& id) { | ||
| 2128 | QMetaObject::invokeMethod(qApp, "setKeyboardFocusLocalEntity", Qt::DirectConnection, Q_ARG(EntityItemID, id)); | ||
| 2129 | } | ||
| 2130 | |||
| 2121 | void EntityScriptingInterface::sendMousePressOnEntity(const EntityItemID& id, const PointerEvent& event) { | 2131 | void EntityScriptingInterface::sendMousePressOnEntity(const EntityItemID& id, const PointerEvent& event) { |
| 2122 | emit mousePressOnEntity(id, event); | 2132 | emit mousePressOnEntity(id, event); |
| 2123 | } | 2133 | } |