VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrf::DtVrfGuiJoystickControlHandler Class Reference

Handler that will manage the objects that are taken control of for joystick controls and process the events to apply to them.

Inheritance diagram for makVrf::DtVrfGuiJoystickControlHandler:
Inheritance graph
[legend]

Public Member Functions

 DtVrfGuiJoystickControlHandler (makVrv::DtDe &, const DtUUID &)
 
virtual ~DtVrfGuiJoystickControlHandler () override
 
- Public Member Functions inherited from makVrv::DtJoystickFunctionEnableHandler
 DtJoystickFunctionEnableHandler (DtDe &)
 
virtual ~DtJoystickFunctionEnableHandler () override
 
virtual bool gameControllerEvent (DtGenericControllerEvent *) override
 
virtual void tick (bool sentEvents) override
 
virtual void gameControllerDeviceAdded (int) override
 
virtual bool enableJoystickFunctions (const std::string &configuration, const std::set< std::string > &functionalGroups, std::set< std::string > &enabled)
 
virtual bool inControlOfConfiguration (const std::string &configuration) const
 
virtual bool disableJoystickFunctions (const std::set< std::string > &functionalGroups, std::set< std::string > &disabled)
 
virtual std::set< std::string > controlledFunctionGroups () const
 
virtual bool canFunctionGroupBeAssigned (const std::string &functionGroup) const
 
virtual bool eventActive (DtGenericControllerEvent *sdlEvent) const
 
virtual bool canProcessEvent (DtGenericControllerEvent *sdlEvent) const override
 
virtual bool anyFunctionGroupsActive () const
 
virtual void releaseAllControllerInformation ()
 
- Public Member Functions inherited from makVrv::DtGameControllerEventHandler
 DtGameControllerEventHandler ()
 
virtual ~DtGameControllerEventHandler ()
 

Protected Member Functions

virtual bool joystickFunctionFired (const std::string &functionGroup, const std::string &function, double value, bool repeat, bool valueChanged) override
 
virtual void gameControllerDeviceRemoved (int i) override
 
virtual void slot_backendUpdated (int flags)
 
- Protected Member Functions inherited from makVrv::DtJoystickFunctionEnableHandler
virtual bool filterGameControllerEvent (DtGenericControllerEvent *) override
 
virtual bool isFunctionGroupActive (const std::string &configuration, const std::string &) const
 
virtual void activateFunctionGroup (const std::string &configuration, const std::string &)
 
virtual void deactivateFunctionGroup (const std::string &configuration, const std::string &)
 
virtual void switchControlOfFunction (const std::string &configuration, const std::string &functionGroup)
 
virtual void noQueuedEvents () override
 
virtual void gameControlInformationAdded (const std::string &configuration, const std::string &functionGroup, const std::string &function, const DtGameControlInformation &i) override
 

Protected Attributes

DtUUID myControllingUUID
 
DtVrfGuiJoystickControlManagermyJoystickControlManager
 
DtGuiThreadVrfRemoteControllermyRemoteController
 
bool mySimulationRunning
 
- Protected Attributes inherited from makVrv::DtJoystickFunctionEnableHandler
ControlledDevices myControlledDevices
 
InControlOf myInControlOf
 
DtJoystickManagermyJoystickManager
 
DtSignalConnectionManager myConnections
 
LastJoystickAxisValue myLastJoystickAxisValue
 
RepeatQueue myRepeatQueue
 
DtDemyDe
 

Additional Inherited Members

- Protected Types inherited from makVrv::DtJoystickFunctionEnableHandler
typedef std::vector
< ControlStatus
ControlStatusVector
 
typedef std::map< std::string,
ControlStatusVector
ControlStatusMap
 
typedef std::map< int,
ControlStatusMap
ControlledDevices
 
typedef std::unordered_map
< std::string, ControlStruct
InControlOf
 
typedef std::map< int,
std::map< int, int > > 
LastJoystickAxisValue
 
typedef std::unordered_map
< DtGameControlProcessor
*, std::pair< ControlStatus,
DtGenericControllerEvent * > > 
RepeatQueue
 

Constructor & Destructor Documentation

makVrf::DtVrfGuiJoystickControlHandler::DtVrfGuiJoystickControlHandler ( makVrv::DtDe ,
const DtUUID  
)
virtual makVrf::DtVrfGuiJoystickControlHandler::~DtVrfGuiJoystickControlHandler ( )
overridevirtual

Member Function Documentation

virtual bool makVrf::DtVrfGuiJoystickControlHandler::joystickFunctionFired ( const std::string &  functionGroup,
const std::string &  function,
double  value,
bool  repeat,
bool  valueChanged 
)
overrideprotectedvirtual

Called when a game control processor fires off. Implement this to do something with the given function group, function and value of the processor. Return false to continue to look for another handler which might implement this event. Value changed will be true if the value has changed from the last period.

Implements makVrv::DtJoystickFunctionEnableHandler.

virtual void makVrf::DtVrfGuiJoystickControlHandler::gameControllerDeviceRemoved ( int  )
overrideprotectedvirtual

Called when a game controller device is removed.

Reimplemented from makVrv::DtJoystickFunctionEnableHandler.

virtual void makVrf::DtVrfGuiJoystickControlHandler::slot_backendUpdated ( int  flags)
protectedvirtual

Member Data Documentation

DtUUID makVrf::DtVrfGuiJoystickControlHandler::myControllingUUID
protected
DtVrfGuiJoystickControlManager& makVrf::DtVrfGuiJoystickControlHandler::myJoystickControlManager
protected
DtGuiThreadVrfRemoteController& makVrf::DtVrfGuiJoystickControlHandler::myRemoteController
protected
bool makVrf::DtVrfGuiJoystickControlHandler::mySimulationRunning
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)