11 #ifndef hifi_Controllers_Impl_MappingBuilderProxy_h
12 #define hifi_Controllers_Impl_MappingBuilderProxy_h
14 #include <QtCore/QObject>
15 #include <QtCore/QString>
24 namespace controller {
26 class ScriptingInterface;
27 class UserInputMapper;
133 class MappingBuilderProxy :
public QObject {
136 MappingBuilderProxy(UserInputMapper& parent, Mapping::Pointer mapping)
137 : _parent(parent), _mapping(mapping) { }
148 Q_INVOKABLE QObject* fromQml(
const QJSValue& source);
160 Q_INVOKABLE QObject* makeAxisQml(
const QJSValue& source1,
const QJSValue& source2);
170 Q_INVOKABLE QObject* from(
const ScriptValue& source);
201 Q_INVOKABLE QObject* enable(
bool enable =
true);
209 Q_INVOKABLE QObject* disable() {
return enable(
false); }
212 QObject* from(
const Endpoint::Pointer& source);
214 friend class RouteBuilderProxy;
215 UserInputMapper& _parent;
216 Mapping::Pointer _mapping;
219 void parseRoute(
const QJsonValue& json);
[ScriptInterface] Provides an engine-independent interface for QScriptValue
Definition: ScriptValue.h:40