6#ifndef QQUICK3DXRACTIONMAPPER_H
7#define QQUICK3DXRACTIONMAPPER_H
22#include <QQuick3DObject>
26#include <QtQuick3DXr/private/qtquick3dxrglobal_p.h>
30class QQuick3DXrController;
37 Q_INTERFACES(QQmlParserStatus)
111 void setActionId(
const QList<Action> &newActionId);
117 void setHand(Controller newHand);
140 QString m_actionName;
142 bool m_pressed =
false;
143 bool m_componentComplete =
false;
144 bool m_enabled =
true;
145 Controller m_controller;
147 QList<Action> m_actionIds;
153 Q_INTERFACES(QQmlParserStatus)
214 QMetaObject::Connection m_triggerConnection;
217 QPointer<QQuick3DXrAbstractHapticEffect> m_hapticEffect;
218 bool m_trigger =
false;
219 bool m_componentComplete =
false;
220 bool m_pending =
false;
231 static void handleInput(QQuick3DXrInputAction::Action id, QtQuick3DXr::Controller controller,
const char *shortName,
float value);
238 explicit QQuick3DXrActionMapper(QObject *parent =
nullptr);
242 QList<QPointer<QQuick3DXrHapticFeedback>> m_hapticEffects;
245 QMultiHash<quint32, QQuick3DXrInputAction *> m_actions;
246 QMultiHash<QString, QQuick3DXrInputAction *> m_customActions;
static void registerAction(QQuick3DXrInputAction *action)
static QList< QPointer< QQuick3DXrHapticFeedback > > getHapticEffects(QtQuick3DXr::Controller controller)
static void registerHapticEffect(QPointer< QQuick3DXrHapticFeedback >)
static void removeHapticEffect(QQuick3DXrHapticFeedback *action)
static void handleInput(QQuick3DXrInputAction::Action id, QtQuick3DXr::Controller controller, const char *shortName, float value)
static void removeAction(QQuick3DXrInputAction *action)
void classBegin() override
Invoked after class creation, but before any properties have been set.
void hapticEffectChanged()
void setCondition(enum Condition newCondition)
~QQuick3DXrHapticFeedback() override
void setController(Controller newController)
void setTrigger(bool newTrigger)
enum Condition condition() const
\qmlproperty enumeration QtQuick3D.Xr::XrHapticFeedback::condition
void stop()
\qmlmethod void XrHapticFeedback::stop()
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
void setHapticEffect(QQuick3DXrAbstractHapticEffect *newHapticEffect)
QQuick3DXrAbstractHapticEffect * hapticEffect() const
\qmlproperty XrHapticEffect XrHapticFeedback::hapticEffect
Controller controller() const
\qmlproperty enumeration QtQuick3D.Xr::XrHapticFeedback::controller
Combined button and popup list for selecting options.