20#include <vrvUtil/DtVirtualBaseClass.h>
24class DtVirtualRealityDriver;
Defines a class that encapsulates VR controller events.
Encapsulates a virtual reality controller event.
Definition DtVirtualRealityControllerEvent.h:30
std::map< unsigned int, DtVirtualRealityControllerState * > ControllerStateMap
Map type that associates controller IDs with their state objects.
Definition DtVirtualRealityEventManager.h:60
virtual void tick()
called every frame by the system. Calls the processVREvents for the specific system
virtual EventProcessorList & eventProccesorList()
non-const access to the event processor list
DtDe & myDe
Definition DtVirtualRealityEventManager.h:136
virtual ~DtVirtualRealityEventManager() override
Virtual destructor.
static DtVirtualRealityEventManager & instance(DtDe &de)
Gets the singleton instance of the appropriate event manager.
DtVirtualRealityEventManager()
Unused default constructor.
virtual void addEventProcessorToFront(DtVirtualRealityEventProcessorInterface *processor)
Registers an event processor at the front of the event processing queue.
ControllerStateMap myControllerStates
Definition DtVirtualRealityEventManager.h:139
virtual const EventProcessorList & eventProccesorList() const
const access the event processor list
virtual void removeEventProcessor(DtVirtualRealityEventProcessorInterface *processor)
Unregisters an event processor.
virtual void dispatchControllerEvent(DtVirtualRealityControllerEvent &event)
dispatch controller event to any active event handlers
virtual void addEventProcessorToBack(DtVirtualRealityEventProcessorInterface *processor)
Registers an event processor at the back of the event processing queue.
const ControllerStateMap & controllerStateMap() const
Access the Controller State map containing the most recent state of all controllers....
virtual void processVrEvents()=0
collects and dispatches events from the VR system to any active event processors.
EventProcessorList myEventProcessors
Definition DtVirtualRealityEventManager.h:138
DtVirtualRealityDriver * myVrDriver
Definition DtVirtualRealityEventManager.h:137
DtVirtualRealityEventManager(DtDe &de)
CTOR.
Interface for processing virtual reality controller events.
Definition DtVirtualRealityEventProcessorInterface.h:30
Definition appLauncherComponent.h:28
std::list< DtVirtualRealityEventProcessorInterface * > EventProcessorList
List type for storing event processor pointers.
Definition DtVirtualRealityEventManager.h:31
makVrv::DtDe * de()
Gets the display element pointer used by the plugin.
Main header file for the VRV Virtual Reality Controller module.