18#include <QtCore/QObject>
155 virtual void updateChannel(
const std::string& windowName =
"",
const std::string& channelName =
"");
Helper class to detect and monitor window focus changes.
Definition mouseControl.h:28
makVrv::DtDe & myDe
Reference to the display environment.
Definition mouseControl.h:52
void updateFocusState()
Check and update the application focus state.
bool myWidgetInFocus
Flag indicating if a widget within the application has focus.
Definition mouseControl.h:58
DtMouseControlFocusWatcher(makVrv::DtDe &de)
Constructor that initializes focus watching.
QMetaObject::Connection myFocusChangedConnection
Connection to Qt's focus changed signal.
Definition mouseControl.h:55
virtual ~DtMouseControlFocusWatcher() override
Destructor.
bool myFocusState
Current focus state of the application.
Definition mouseControl.h:61
bool myIsToggledOn
Flag indicating if mouse control is toggled on by the user.
Definition mouseControl.h:172
virtual ~DtMouseControl()
Virtual destructor.
virtual void centerMouse()
Center the mouse cursor in the application window.
bool myPlayerControlsEnabled
Flag indicating if player controls are enabled.
Definition mouseControl.h:175
virtual void shutdown()
Shut down the mouse control system.
virtual bool isEnabled() const
Check if mouse control is currently enabled.
virtual DtVreMessageResult handleFocusState(DtVreMessage *msg)
Handle message indicating focus state change.
makVrv::DtDe & myDe
Reference to the display environment.
Definition mouseControl.h:161
virtual DtVreMessageResult handleToggleMouseControl(DtVreMessage *msg)
Handle message to toggle mouse control on or off.
DtMouseControlFocusWatcher myMouseControlFocusWatcher
Focus watcher for detecting window focus changes.
Definition mouseControl.h:158
virtual bool init()
Initialize the mouse control system.
virtual void updateMouseControlState()
Update the mouse control state based on current system state.
virtual bool isFocused() const
Check if the application window has focus.
bool myEnabled
Flag indicating if mouse control is currently enabled.
Definition mouseControl.h:167
virtual void updateChannel(const std::string &windowName="", const std::string &channelName="")
Update the input channel for mouse events.
bool myHasFocus
Flag indicating if application has focus.
Definition mouseControl.h:178
virtual DtVreMessageResult handlePlayerControlsState(DtVreMessage *msg)
Handle message indicating player controls state change.
DtMouseControl(makVrv::DtDe &de)
Constructor that initializes mouse control.
makVrv::DtChannel * myChannel
Pointer to the current input channel.
Definition mouseControl.h:164
makVrv::DtChannel * getChannel() const
Get the current input channel.
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
DtVreMessageResult
Enumeration of possible message handling results.
Definition vreMessage.h:33
makVrv::DtDe * de()
Gets the display element pointer used by the plugin.
Defines the event processor for handling display channel events.
Defines the base class for all VREngage messages.