17#include <vrvCore/DtEventProcessorInterface.h>
18#include <vrvCore/DtMouseEvent.h>
98 virtual void tick(
double dt)
override;
118 virtual bool processMouseEvent(
const makVrv::DtMouseEvent& ev, makVrv::DtChannel& channel)
override;
Table-based access to Lua state for configuration data.
Definition initializer.h:38
Manages mouse control state and behavior.
Definition mouseControl.h:72
Class for managing the user interface for engaged roles.
Definition playerStation.h:51
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
virtual DtVreMessageResult handleSetVRVInputEnabled(DtVreMessage *msg)
Handles messages to enable or disable VRV input processing.
std::vector< bool > myMouseDoubleClickState
Tracking state for double-click detection (one entry per button)
Definition vrvKeyboardMouseDevice.h:176
virtual const std::string & className() override
Gets the class name of this event processor.
virtual void tick(double dt) override
Updates the event processor for the current frame.
DtInputData myMouseInputData
Reusable structure for mouse input data.
Definition vrvKeyboardMouseDevice.h:164
DtVrvKeyboardMouseDevice()
Default constructor.
virtual bool init(DtVreInputManager &mgr) override
Initializes the event processor.
double myLastMouseMoveUpdate
Timestamp of the last mouse move update.
Definition vrvKeyboardMouseDevice.h:173
virtual void processMouseMove(float x, float y)
Processes mouse movement events.
bool myVRVInputEnabled
Flag indicating whether VRV input processing is enabled.
Definition vrvKeyboardMouseDevice.h:161
virtual ~DtVrvKeyboardMouseDevice() override
Virtual destructor.
DtVreInputManager * myManager
Pointer to the input manager that owns this device.
Definition vrvKeyboardMouseDevice.h:158
std::unique_ptr< DtMouseControl > myMouseControl
Mouse control object for handling mouse behavior.
Definition vrvKeyboardMouseDevice.h:170
virtual void shutdown() override
Shuts down the event processor.
virtual void setMouseClickData(DtMouseButton button, bool doubleClick, bool raised)
Sets up mouse click input data.
virtual bool processMouseEvent(const makVrv::DtMouseEvent &ev, makVrv::DtChannel &channel) override
Processes mouse events from the core system.
virtual void reportCurrentState() override
Reports the current state of input device controls.
Definition vrvKeyboardMouseDevice.h:91
std::string myClassName
Class name for identification in the event system.
Definition vrvKeyboardMouseDevice.h:155
DtInputData myKeyboardInputData
Reusable structure for keyboard input data.
Definition vrvKeyboardMouseDevice.h:167
virtual bool processKeyboardEvent(const makVrv::DtKeyEvent &ev, makVrv::DtChannel &channel) override
Processes keyboard events from the core system.
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
enum DtMouseButton { DtLeftButton=0, DtRightButton, DtMiddleButton } DtMouseButton
Enumeration of mouse button types.
Definition inputData.h:45
DtVreMessageResult
Enumeration of possible message handling results.
Definition vreMessage.h:33
Definition appLauncherComponent.h:28
Structure for keyboard action definition.
Definition vrvKeyboardMouseDevice.h:59
double value
Value to assign to the action when triggered.
Definition vrvKeyboardMouseDevice.h:61
std::string name
Name of the action to trigger.
Definition vrvKeyboardMouseDevice.h:60
Defines the base class for all VREngage messages.