6#ifndef QQUICK3DXRACTIONMAPPER_H
7#define QQUICK3DXRACTIONMAPPER_H
22#include <QQuick3DObject>
29class QQuick3DXrController;
36 Q_INTERFACES(QQmlParserStatus)
109 void setActionId(
const QList<Action> &newActionId);
115 void setHand(Controller newHand);
138 QString m_actionName;
140 bool m_pressed =
false;
141 bool m_componentComplete =
false;
142 bool m_enabled =
true;
143 Controller m_controller;
145 QList<Action> m_actionIds;
151 Q_INTERFACES(QQmlParserStatus)
207 QMetaObject::Connection m_triggerConnection;
210 QPointer<QQuick3DXrAbstractHapticEffect> m_hapticEffect;
211 bool m_trigger =
false;
212 bool m_componentComplete =
false;
213 bool m_pending =
false;
224 static void handleInput(QQuick3DXrInputAction::Action id, QQuick3DXrInputAction::Controller hand,
const char *shortName,
float value);
231 explicit QQuick3DXrActionMapper(QObject *parent =
nullptr);
235 QList<QPointer<QQuick3DXrHapticFeedback>> m_hapticEffects;
238 QMultiHash<quint32, QQuick3DXrInputAction *> m_actions;
239 QMultiHash<QString, QQuick3DXrInputAction *> m_customActions;
static void registerAction(QQuick3DXrInputAction *action)
static void handleInput(QQuick3DXrInputAction::Action id, QQuick3DXrInputAction::Controller hand, const char *shortName, float value)
static QList< QPointer< QQuick3DXrHapticFeedback > > getHapticEffects(QQuick3DXrInputAction::Controller hand)
static void registerHapticEffect(QPointer< QQuick3DXrHapticFeedback >)
static void removeHapticEffect(QQuick3DXrHapticFeedback *action)
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.