VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions
makVrv::DtJoystickObserverControl Class Reference
Inheritance diagram for makVrv::DtJoystickObserverControl:
Inheritance graph
[legend]

Public Member Functions

 DtJoystickObserverControl (DtDe &)
virtual ~DtJoystickObserverControl ()
virtual bool joystickFunctionFired (const std::string &functionGroup, const std::string &function, double value, bool repeat, bool valueChanged)
 Return false if do not want to handle this event such that another handler which might also listen to the same controls wants to.
- Public Member Functions inherited from makVrv::DtJoystickFunctionEnableHandler
 DtJoystickFunctionEnableHandler (DtDe &)
 CTOR.
virtual ~DtJoystickFunctionEnableHandler ()
 DTOR.
virtual bool gameControllerEvent (DtGenericControllerEvent *)
 Return true to handle the event and not allow other events to handle.
virtual void tick (bool sentEvents)
 Called after game controller events are processed in any given tick.
virtual void gameControllerDeviceRemoved (int)
 Called when a game controller device is removed.
virtual void gameControllerDeviceAdded (int)
 Called when a game controller device is added.
virtual bool enableJoystickFunctions (const std::string &configuration, const std::set< std::string > &functionalGroups, std::set< std::string > &enabled)
 Enables the joystick function for handling via this handler, if not already enabled.
virtual bool disableJoystickFunctions (const std::set< std::string > &functionalGroups, std::set< std::string > &disabled)
 Disables the joystick functions, if enabled.
virtual std::set< std::string > controlledFunctionGroups () const
 Function groups currently controlled.
virtual bool canFunctionGroupBeAssigned (const std::string &functionGroup) const
 Returns true if this function group is not already in control of something.
virtual bool eventActive (DtGenericControllerEvent *sdlEvent) const
 Returns true if this event is active in any game processor.
virtual bool canProcessEvent (DtGenericControllerEvent *sdlEvent) const
 Returns true if the event can be processed by any of the game processors.
virtual bool anyFunctionGroupsActive () const
 Returns true if there are any function groups active.
virtual void releaseAllControllerInformation ()
 Releases control of all used configuration and function groups.
- Public Member Functions inherited from makVrv::DtGameControllerEventHandler
 DtGameControllerEventHandler ()
virtual ~DtGameControllerEventHandler ()

Protected Member Functions

virtual void selectConfiguration (const std::string &)
virtual bool currentIs2D () const
virtual void moveObserverLeftRight (double)
virtual void moveObserverForwardBackward (double)
virtual void moveObserverUpDown (double)
virtual void yaw (double)
virtual void pitch (double)
virtual void roll (double)
virtual void attachNext ()
virtual void attachPrevious ()
virtual void reset ()
- Protected Member Functions inherited from makVrv::DtJoystickFunctionEnableHandler
virtual bool filterGameControllerEvent (DtGenericControllerEvent *)
 Return true to filter this Game controller Event.
virtual bool isFunctionGroupActive (const std::string &configuration, const std::string &) const
 Returns true if this function group is active. This will return true if any function within the group is active.
virtual void activateFunctionGroup (const std::string &configuration, const std::string &)
 Will activate all functions within the function group.
virtual void deactivateFunctionGroup (const std::string &configuration, const std::string &)
 Will deactivate all functions within the function group.
virtual void switchControlOfFunction (const std::string &configuration, const std::string &functionGroup)
virtual void noQueuedEvents ()
 Called when there were events but now there are no longer queued events.
virtual void gameControlInformationAdded (const std::string &configuration, const std::string &functionGroup, const std::string &function, const DtGameControlInformation &i)
 Called when game controller information is added or updated for the given configuration, function group and function.

Additional Inherited Members

- Protected Types inherited from makVrv::DtJoystickFunctionEnableHandler
typedef std::vector
< ControlStatus
ControlStatusVector
 Devices that are controlled and their current status.
typedef std::map< std::string,
ControlStatusVector
ControlStatusMap
 By function group.
typedef std::map< int,
ControlStatusMap
ControlledDevices
typedef boost::unordered_map
< std::string, ControlStruct
InControlOf
 Configurations that are controlled and their current switch status.
typedef std::map< int,
std::map< int, int > > 
LastJoystickAxisValue
typedef boost::unordered_map
< DtGameControlProcessor
*, std::pair< ControlStatus,
DtGenericControllerEvent * > > 
RepeatQueue
 Queue of funcutons that wish to get a repeat of an event if that event is not triggered (such as a button press)
- Protected Attributes inherited from makVrv::DtJoystickFunctionEnableHandler
ControlledDevices myControlledDevices
InControlOf myInControlOf
DtJoystickManagermyJoystickManager
DtSignalConnectionManager myConnections
LastJoystickAxisValue myLastJoystickAxisValue
RepeatQueue myRepeatQueue
DtDemyDe

Constructor & Destructor Documentation

makVrv::DtJoystickObserverControl::DtJoystickObserverControl ( DtDe )
virtual makVrv::DtJoystickObserverControl::~DtJoystickObserverControl ( )
virtual

Member Function Documentation

virtual bool makVrv::DtJoystickObserverControl::joystickFunctionFired ( const std::string &  functionGroup,
const std::string &  function,
double  value,
bool  repeat,
bool  valueChanged 
)
virtual

Return false if do not want to handle this event such that another handler which might also listen to the same controls wants to.

Implements makVrv::DtJoystickFunctionEnableHandler.

virtual void makVrv::DtJoystickObserverControl::selectConfiguration ( const std::string &  )
protectedvirtual
virtual bool makVrv::DtJoystickObserverControl::currentIs2D ( ) const
protectedvirtual
virtual void makVrv::DtJoystickObserverControl::moveObserverLeftRight ( double  )
protectedvirtual
virtual void makVrv::DtJoystickObserverControl::moveObserverForwardBackward ( double  )
protectedvirtual
virtual void makVrv::DtJoystickObserverControl::moveObserverUpDown ( double  )
protectedvirtual
virtual void makVrv::DtJoystickObserverControl::yaw ( double  )
protectedvirtual
virtual void makVrv::DtJoystickObserverControl::pitch ( double  )
protectedvirtual
virtual void makVrv::DtJoystickObserverControl::roll ( double  )
protectedvirtual
virtual void makVrv::DtJoystickObserverControl::attachNext ( )
protectedvirtual
virtual void makVrv::DtJoystickObserverControl::attachPrevious ( )
protectedvirtual
virtual void makVrv::DtJoystickObserverControl::reset ( )
protectedvirtual

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

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)