Handles OpenXR input actions and controller state.
More...
#include <XrInputHandler.h>
Handles OpenXR input actions and controller state.
Definition at line 124 of file XrInputHandler.h.
◆ XrInputHandler()
◆ getGripValue()
| float Input::XrInputHandler::getGripValue |
( |
Hand | hand | ) |
const |
|
nodiscard |
Gets the grip/squeeze value for the specified hand (0.0 to 1.0)
◆ getHandPoseInfo()
Gets pose info for the specified hand.
- Parameters
-
- Returns
- Current pose and space information
◆ getLeftHandSpace()
| XrSpace Input::XrInputHandler::getLeftHandSpace |
( |
| ) |
|
◆ getLeftThumbstick()
| glm::vec2 Input::XrInputHandler::getLeftThumbstick |
( |
| ) |
const |
|
inlinenodiscard |
◆ getRightHandSpace()
| XrSpace Input::XrInputHandler::getRightHandSpace |
( |
| ) |
|
◆ getRightThumbstick()
| glm::vec2 Input::XrInputHandler::getRightThumbstick |
( |
| ) |
const |
|
inlinenodiscard |
Gets the right thumbstick input for XZ plane movement.
- Returns
- vec2 where x = strafe (left/right), y = forward/back
Definition at line 160 of file XrInputHandler.h.
References rightThumbstick_.
◆ getTriggerValue()
| float Input::XrInputHandler::getTriggerValue |
( |
Hand | hand | ) |
const |
|
nodiscard |
Gets the trigger value for the specified hand (0.0 to 1.0)
◆ syncInputs()
| void Input::XrInputHandler::syncInputs |
( |
XrSpace | playerSpace, |
|
|
XrTime | predictedDisplayTime ) |
Updates input state from OpenXR runtime.
- Parameters
-
| playerSpace | Reference space for pose calculations |
| predictedDisplayTime | Time for which poses should be predicted |
◆ aimPoseAction
| XrAction Input::XrInputHandler::aimPoseAction = XR_NULL_HANDLE |
|
private |
◆ aimPoseLeftHand
| XrAction Input::XrInputHandler::aimPoseLeftHand = XR_NULL_HANDLE |
|
private |
◆ context
◆ defaultActionSet
| XrActionSet Input::XrInputHandler::defaultActionSet = XR_NULL_HANDLE |
|
private |
◆ engine
◆ gripAction_
| XrAction Input::XrInputHandler::gripAction_ = XR_NULL_HANDLE |
|
private |
◆ gripValues_
| float Input::XrInputHandler::gripValues_[2] = { 0.0f, 0.0f } |
|
private |
◆ handPaths
| std::vector<XrPath> Input::XrInputHandler::handPaths |
|
private |
◆ handPoseInfos
| std::vector<HandPoseInfo> Input::XrInputHandler::handPoseInfos |
◆ headset
◆ leftThumbstick_
| glm::vec2 Input::XrInputHandler::leftThumbstick_ { 0.0f } |
|
private |
◆ rightThumbstick_
| glm::vec2 Input::XrInputHandler::rightThumbstick_ { 0.0f } |
|
private |
◆ thumbstickAction_
| XrAction Input::XrInputHandler::thumbstickAction_ = XR_NULL_HANDLE |
|
private |
◆ triggerAction_
| XrAction Input::XrInputHandler::triggerAction_ = XR_NULL_HANDLE |
|
private |
◆ triggerValues_
| float Input::XrInputHandler::triggerValues_[2] = { 0.0f, 0.0f } |
|
private |
The documentation for this class was generated from the following file:
- /home/magerbeton/Documents/gl3-vulkan/Engine/include/Engine/Input/XrInputHandler.h