VR-Forces 4.10 Class Documentation
 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
makVrv::DtGameControlProcessor Class Reference

This class will keep control of a particular game control function given the events it can control. More...

Public Member Functions

 DtGameControlProcessor (DtDe &)
 CTOR. More...
 
 DtGameControlProcessor (const DtGameControlProcessor &)
 
virtual ~DtGameControlProcessor ()
 DTOR. More...
 
virtual void setGameControls (const DtGameControlInformation &)
 
virtual DtGameControlProcessoroperator= (const DtGameControlProcessor &)
 Copy information. More...
 
virtual bool updateFunctionStatus (DtGenericControllerEvent *, bool &repeat)
 Updates the double value supplied, given the value and bounds information. More...
 
virtual bool noQueuedEvents ()
 This is only sent once when there were events sent and now there are no more events in the queue. More...
 
virtual bool eventActive (DtGenericControllerEvent *) const
 Returns true if this event is active. More...
 
virtual bool isReleaseEvent (DtGenericControllerEvent *e) const
 Return true if this is an "up" event for the event that this might be (i.e. More...
 
virtual bool canProcessEvent (DtGenericControllerEvent *) const
 Returns true if this event can be processed by this processor. More...
 
double value ()
 
bool valueChanged ()
 
const DtGameControlInformationgameControls () const
 
bool active () const
 
virtual void setActive (bool)
 
virtual void setRange (double min, double max)
 
void getRange (double &min, double &max)
 
virtual DtUnicode descriptiveString () const
 

Protected Member Functions

virtual bool processJoystickEvent (DtGameControllerJoystickEvent *, const DtGameControlInformation::GameControlEvent &)
 
virtual bool processKeyboardEvent (DtGameControllerKeyboardEvent *, const DtGameControlInformation::GameControlEvent &)
 
virtual bool processGenericEvent (DtGenericControllerEvent *, const DtGameControlInformation::GameControlEvent &)
 

Protected Attributes

DtGameControlInformation myControls
 Return true if this is a possible key up event for the given event. More...
 
bool myActive
 
double myMinimumValue
 
double myMaximumValue
 
int myEventActive
 
double myValue
 
double myLastValue
 
bool myValueChanged
 
DtDemyDe
 
DtJoystickManagermyJoystickManager
 
bool myActiveEventIsAxis
 

Detailed Description

This class will keep control of a particular game control function given the events it can control.

Call updateFunctionStatus to update the value of myValue based on the given event. If repeat is returned true this event should repeat until the particular controller has a matching release event.

Constructor & Destructor Documentation

makVrv::DtGameControlProcessor::DtGameControlProcessor ( DtDe )

CTOR.

makVrv::DtGameControlProcessor::DtGameControlProcessor ( const DtGameControlProcessor )
virtual makVrv::DtGameControlProcessor::~DtGameControlProcessor ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtGameControlProcessor::setGameControls ( const DtGameControlInformation )
virtual
virtual DtGameControlProcessor& makVrv::DtGameControlProcessor::operator= ( const DtGameControlProcessor )
virtual

Copy information.

virtual bool makVrv::DtGameControlProcessor::updateFunctionStatus ( DtGenericControllerEvent ,
bool repeat 
)
virtual

Updates the double value supplied, given the value and bounds information.

virtual bool makVrv::DtGameControlProcessor::noQueuedEvents ( )
virtual

This is only sent once when there were events sent and now there are no more events in the queue.

Return true to process the function status

virtual bool makVrv::DtGameControlProcessor::eventActive ( DtGenericControllerEvent ) const
virtual

Returns true if this event is active.

virtual bool makVrv::DtGameControlProcessor::isReleaseEvent ( DtGenericControllerEvent e) const
virtual

Return true if this is an "up" event for the event that this might be (i.e.

a button up for a button down, key up for key down or HAT recenter)

virtual bool makVrv::DtGameControlProcessor::canProcessEvent ( DtGenericControllerEvent ) const
virtual

Returns true if this event can be processed by this processor.

double makVrv::DtGameControlProcessor::value ( )
inline
bool makVrv::DtGameControlProcessor::valueChanged ( )
inline
const DtGameControlInformation& makVrv::DtGameControlProcessor::gameControls ( ) const
inline
bool makVrv::DtGameControlProcessor::active ( ) const
inline
virtual void makVrv::DtGameControlProcessor::setActive ( bool  )
virtual
virtual void makVrv::DtGameControlProcessor::setRange ( double  min,
double  max 
)
virtual
void makVrv::DtGameControlProcessor::getRange ( double min,
double max 
)
virtual DtUnicode makVrv::DtGameControlProcessor::descriptiveString ( ) const
virtual
virtual bool makVrv::DtGameControlProcessor::processJoystickEvent ( DtGameControllerJoystickEvent ,
const DtGameControlInformation::GameControlEvent  
)
protectedvirtual
virtual bool makVrv::DtGameControlProcessor::processKeyboardEvent ( DtGameControllerKeyboardEvent ,
const DtGameControlInformation::GameControlEvent  
)
protectedvirtual
virtual bool makVrv::DtGameControlProcessor::processGenericEvent ( DtGenericControllerEvent ,
const DtGameControlInformation::GameControlEvent  
)
protectedvirtual

Member Data Documentation

DtGameControlInformation makVrv::DtGameControlProcessor::myControls
protected

Return true if this is a possible key up event for the given event.

bool makVrv::DtGameControlProcessor::myActive
protected
double makVrv::DtGameControlProcessor::myMinimumValue
protected
double makVrv::DtGameControlProcessor::myMaximumValue
protected
int makVrv::DtGameControlProcessor::myEventActive
protected
double makVrv::DtGameControlProcessor::myValue
protected
double makVrv::DtGameControlProcessor::myLastValue
protected
bool makVrv::DtGameControlProcessor::myValueChanged
protected
DtDe& makVrv::DtGameControlProcessor::myDe
protected
DtJoystickManager& makVrv::DtGameControlProcessor::myJoystickManager
protected
bool makVrv::DtGameControlProcessor::myActiveEventIsAxis
protected

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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)