8 #ifndef META_OCEAN_PLATFORM_META_QUEST_OPENXR_TRACKED_CONTROLLER_H
9 #define META_OCEAN_PLATFORM_META_QUEST_OPENXR_TRACKED_CONTROLLER_H
56 BT_LEFT_TRIGGER = 1u << 2u,
58 BT_LEFT_GRIP = 1u << 3u,
60 BT_LEFT_MENU = 1u << 4u,
62 BT_LEFT_JOYSTICK = 1u << 5u,
65 BT_RIGHT_A = 1u << 6u,
67 BT_RIGHT_B = 1u << 7u,
69 BT_RIGHT_TRIGGER = 1u << 8u,
71 BT_RIGHT_GRIP = 1u << 9u,
73 BT_RIGHT_SYSTEM = 1u << 10u,
75 BT_RIGHT_JOYSTICK = 1u << 11u,
78 BT_LEFT_ALL = BT_LEFT_X | BT_LEFT_Y | BT_LEFT_TRIGGER | BT_LEFT_GRIP | BT_LEFT_MENU | BT_LEFT_JOYSTICK,
81 BT_RIGHT_ALL = BT_RIGHT_A | BT_RIGHT_B | BT_RIGHT_TRIGGER | BT_RIGHT_GRIP | BT_RIGHT_SYSTEM | BT_RIGHT_JOYSTICK,
99 CT_LEFT_OR_RIGHT = CT_LEFT | CT_RIGHT
115 AT_LEFT_AIM = BT_END,
140 static constexpr
size_t numberControllers_ = 2;
173 bool initialize(
const XrInstance& xrInstance,
const XrSession& xrSession);
181 bool update(
const XrSpace& baseSpace,
const XrTime& xrPredictedDisplayTime);
294 XrSession xrSession_ = XR_NULL_HANDLE;
342 XrHapticVibration xrHapticVibrations_[numberControllers_] = {};
359 *
this = std::move(trackedController);
364 ocean_assert(session.
isValid());
This class implements a recursive lock object.
Definition: Lock.h:31
This class implements a scoped lock object for recursive lock objects.
Definition: Lock.h:135
This class implements a timestamp.
Definition: Timestamp.h:36
HomogenousMatrixT4< Scalar > HomogenousMatrix4
Definition of the HomogenousMatrix4 object, depending on the OCEAN_MATH_USE_SINGLE_PRECISION flag eit...
Definition: HomogenousMatrix4.h:37
VectorT2< Scalar > Vector2
Definition of a 2D vector.
Definition: Vector2.h:21
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15