![]() |
VR-Forces 4.10 Class Documentation
|
This class will be used to query about current joysticks and the capabilities they might have. More...

Public Types | |
| typedef std::map< DtString, std::map< DtString, DtRwJoystickControl > > | JoystickControls |
| typedef std::map< DtString, JoystickControls > | JoystickControlsMap |
Public Member Functions | |
| DtVrfGuiJoystickControlManager (makVrv::DtDe &) | |
| CTOR. More... | |
| virtual | ~DtVrfGuiJoystickControlManager () |
| DTOR. More... | |
| virtual void | requestJoystickControlInformation (const DtUUID &) |
| Request joystick control information (if not already there for the specified entity type) for the given entity. More... | |
| virtual JoystickControls | joystickControlInformation (makVrv::DtUniqueID) const |
| Returns the joystick control information for the given entity. More... | |
| virtual JoystickControls | joystickControlInformation (const DtUUID &) const |
| virtual JoystickControls | joystickControlInformation (const DtEntityType &) const |
| virtual bool | hasJoystickControlInformation (makVrv::DtUniqueID) const |
| virtual bool | hasJoystickControlInformation (const DtUUID &) const |
| virtual bool | hasJoystickControlInformation (const DtEntityType &) const |
| virtual void | takeControlOf (makVrv::DtUniqueID, const std::string &configuration, const std::set< std::string > &functionalGroups) |
| Takes control of the current entity given the functional groups. More... | |
| virtual void | takeControlOf (const DtUUID &, const std::string &configuration, const std::set< std::string > &functionalGroups) |
| virtual bool | inControlOf (makVrv::DtUniqueID) const |
| Returns true if the front-end has control of this entity. More... | |
| virtual bool | inControlOf (const DtUUID &) const |
| virtual bool | inControlOf (const DtUUID &, const std::string &) const |
| Returns true if the front-end has control of this function group for this entity. More... | |
| virtual bool | canAnyFunctionGroupBeAssigned (makVrv::DtUniqueID, const std::string &configuration) const |
| Returns true if any function group is available for this configuration. More... | |
| virtual bool | canAnyFunctionGroupBeAssigned (const DtUUID &, const std::string &configuration) const |
| virtual void | releaseControlOf (makVrv::DtUniqueID, const std::set< std::string > &functionalGroups=std::set< std::string >(), bool objectRemoved=false) |
| Releases control of this entity for the given set of functional groups. More... | |
| virtual void | releaseControlOf (const DtUUID &, const std::set< std::string > &functionalGroups=std::set< std::string >(), bool objectRemoved=false) |
| virtual void | releaseControlOfAll () |
| Releases control of all controlled items. More... | |
| const JoystickControlsMap & | joystickControlsMap () const |
| virtual std::set< std::string > | uncontrolledFunctionGroups (makVrv::DtUniqueID) const |
| Returns the set of uncontrolled function groups for this particular entity. More... | |
| virtual std::set< std::string > | uncontrolledFunctionGroups (const DtUUID &) const |
| virtual std::set< std::string > | functionGroupsDefinedFor (makVrv::DtUniqueID) const |
| Function groups available to this UUID. More... | |
| virtual std::set< std::string > | functionGroupsDefinedFor (const DtUUID &) const |
| virtual bool | canFunctionGroupBeAssigned (const DtUUID &uuid, const std::string &configuration, const std::string &functionGroup) const |
| Returns true if the specified function group is available for the given UUID. More... | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. More... | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. More... | |
Static Public Member Functions | |
| static DtVrfGuiJoystickControlManager & | instance (makVrv::DtDe &de) |
| static void | registerInstance (makVrv::DtDe &de, DtVrfGuiJoystickControlManager *) |
| Register a new joystick manager. More... | |
Public Attributes | |
| boost::signals2::signal< void(const DtUUID &, const std::string &configuration, const std::set < std::string > &)> | signal_hasTakenControl |
| Signal sent when a user takes control. More... | |
| boost::signals2::signal< void(const DtUUID &, const std::set < std::string > &)> | signal_hasReleasedControl |
| Signal sent when a user releases control. More... | |
| boost::signals2::signal< void(const DtEntityType &, const JoystickControls &)> | signal_joystickControlsAdded |
| Signal sent when a new entity type has been added with joystick information. More... | |
Protected Types | |
| typedef boost::unordered_map < DtUUID, DtVrfGuiJoystickControlHandler * > | InControlOf |
Protected Member Functions | |
| virtual void | initialize () |
| virtual void | slot_stateAdded (const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *) |
| When a state is added make a request for the joystick controls if the entity type has not already been requested. More... | |
| virtual void | processJoystickControlsResponse (DtSimMessage *) |
| Callback made when an joystick response is received. More... | |
| virtual void | slot_stateRemoved (const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *sv) |
| virtual void | cleanupHandlers () |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| makVrv::DtSignalConnectionManager | myConnections |
| JoystickControlsMap | myJoystickControlsMap |
| boost::unordered_set< DtUUID > | myAwaitingResponses |
| DtGuiThreadVrfRemoteController & | myRemoteController |
| InControlOf | myInControlOf |
| std::vector < DtVrfGuiJoystickControlHandler * > | myCleanupQueue |
This class will be used to query about current joysticks and the capabilities they might have.
It will also manage settings for those joysticks as it relates to control of entities.
| typedef std::map<DtString, std::map<DtString, DtRwJoystickControl> > makVrf::DtVrfGuiJoystickControlManager::JoystickControls |
| typedef std::map<DtString, JoystickControls> makVrf::DtVrfGuiJoystickControlManager::JoystickControlsMap |
|
protected |
| makVrf::DtVrfGuiJoystickControlManager::DtVrfGuiJoystickControlManager | ( | makVrv::DtDe & | ) |
CTOR.
|
virtual |
DTOR.
|
static |
|
static |
Register a new joystick manager.
|
virtual |
Request joystick control information (if not already there for the specified entity type) for the given entity.
|
virtual |
Returns the joystick control information for the given entity.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Takes control of the current entity given the functional groups.
Will send a message to the back-end letting it know that this entity is to be taken control of for the specified functional group. When in play mode a message will also be sent to the entity with appropriate joystick information. If the myTakeControlGameControllerEventHandler is not specified the handler will now be created from it's creator and installed
|
virtual |
|
virtual |
Returns true if the front-end has control of this entity.
|
virtual |
Returns true if the front-end has control of this function group for this entity.
|
virtual |
Returns true if any function group is available for this configuration.
|
virtual |
|
virtual |
Releases control of this entity for the given set of functional groups.
If the functional groups are empty then all control is released. A message will be sent ot the back-end letting it know
|
virtual |
|
virtual |
Releases control of all controlled items.
|
inline |
|
virtual |
Returns the set of uncontrolled function groups for this particular entity.
|
virtual |
|
virtual |
Function groups available to this UUID.
|
virtual |
|
virtual |
Returns true if the specified function group is available for the given UUID.
|
protectedvirtual |
|
protectedvirtual |
When a state is added make a request for the joystick controls if the entity type has not already been requested.
|
protectedvirtual |
Callback made when an joystick response is received.
|
protectedvirtual |
|
protectedvirtual |
| boost::signals2::signal<void (const DtUUID&, const std::string& configuration, const std::set<std::string>&)> makVrf::DtVrfGuiJoystickControlManager::signal_hasTakenControl |
Signal sent when a user takes control.
| boost::signals2::signal<void (const DtUUID&, const std::set<std::string>&)> makVrf::DtVrfGuiJoystickControlManager::signal_hasReleasedControl |
Signal sent when a user releases control.
| boost::signals2::signal<void (const DtEntityType&, const JoystickControls&)> makVrf::DtVrfGuiJoystickControlManager::signal_joystickControlsAdded |
Signal sent when a new entity type has been added with joystick information.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |