|
VR-Engage
2.2
|
This class is responsible for processing Oculus Touch controller events and translating them into the common VR controller event format. It communicates with the Oculus SDK to retrieve controller state information and dispatches controller events to registered event processors.
#include <DtOculusEventManager.h>
Public Member Functions | |
| virtual | ~DtOculusEventManager () override |
Public Member Functions inherited from makVrv::DtVirtualRealityEventManager | |
| virtual | ~DtVirtualRealityEventManager () override |
| virtual void | addEventProcessorToFront (DtVirtualRealityEventProcessorInterface *processor) |
| virtual void | addEventProcessorToBack (DtVirtualRealityEventProcessorInterface *processor) |
| virtual void | removeEventProcessor (DtVirtualRealityEventProcessorInterface *processor) |
| virtual const EventProcessorList & | eventProccesorList () const |
| virtual EventProcessorList & | eventProccesorList () |
| const ControllerStateMap & | controllerStateMap () const |
Static Public Member Functions | |
| static DtVirtualRealityEventManager & | instance (DtDe &de) |
Static Public Member Functions inherited from makVrv::DtVirtualRealityEventManager | |
| static DtVirtualRealityEventManager & | instance (DtDe &de) |
Protected Member Functions | |
| DtOculusEventManager (DtDe &de) | |
| virtual void | processVrEvents () override |
| virtual void | updateControllerPositions (ovrTrackingState &tracking) |
| virtual void | updateControllerInputs (ovrInputState &inputState) |
| virtual DtVirtualRealityControllerState::Bitfield | findDeviceType (DtVirtualRealityControllerState::ControllerId deviceId) const |
Protected Member Functions inherited from makVrv::DtVirtualRealityEventManager | |
| DtVirtualRealityEventManager (DtDe &de) | |
| virtual void | dispatchControllerEvent (DtVirtualRealityControllerEvent &event) |
| virtual void | tick () |
Private Member Functions | |
| DtOculusEventManager () | |
Additional Inherited Members | |
Public Types inherited from makVrv::DtVirtualRealityEventManager | |
| using | ControllerStateMap = std::map<unsigned int, DtVirtualRealityControllerState*> |
Protected Attributes inherited from makVrv::DtVirtualRealityEventManager | |
| DtDe & | myDe |
| DtVirtualRealityDriver * | myVrDriver |
| EventProcessorList | myEventProcessors |
| ControllerStateMap | myControllerStates |
|
private |
Unused default constructor.
|
overridevirtual |
Virtual destructor.
Cleans up Oculus event manager resources and releases connections to the Oculus SDK.
|
protected |
Constructor.
| de | Reference to the display engine |
Initializes the Oculus event manager with a reference to the display engine. This constructor is only called by the registerInstance method and should not be called directly.
References de().
|
static |
Gets the singleton instance of the Oculus event manager.
| de | Reference to the display engine |
| DtCorruptedState | if it is unable to get the instance |
Returns the singleton instance of the Oculus event manager, creating it if it doesn't already exist. This method is called by the VR driver during initialization.
References de(), and makVrv::DtVirtualRealityEventManager::DtVirtualRealityEventManager().
|
overrideprotectedvirtual |
Collects and dispatches events from the Oculus VR system.
Polls the Oculus SDK for controller state updates, processes button and analog input events, and dispatches them to registered event processors.
Implements makVrv::DtVirtualRealityEventManager.
|
protectedvirtual |
Updates controller positions from Oculus tracking data.
| tracking | The Oculus tracking state containing position and orientation data |
Processes the controller tracking data from the Oculus SDK and updates the internal controller state with new position and orientation information.
|
protectedvirtual |
Updates controller input states from Oculus input data.
| inputState | The Oculus input state containing button and analog input data |
Processes the controller input data from the Oculus SDK and updates the internal controller state with button presses, touches, and analog input values.
|
protectedvirtual |
Determines the device type for a given controller ID.
| deviceId | The controller identifier to query |
Maps an Oculus-specific device identifier to the common controller device type enumeration used throughout the application.