![]() |
VR-Forces 4.8 Class Documentation
|
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 DtGameControlProcessor & | operator= (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 DtGameControlInformation & | gameControls () 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 |
| DtDe & | myDe |
| DtJoystickManager & | myJoystickManager |
| bool | myActiveEventIsAxis |
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.
| makVrv::DtGameControlProcessor::DtGameControlProcessor | ( | DtDe & | ) |
CTOR.
| makVrv::DtGameControlProcessor::DtGameControlProcessor | ( | const DtGameControlProcessor & | ) |
|
virtual |
DTOR.
|
virtual |
|
virtual |
Copy information.
|
virtual |
Updates the double value supplied, given the value and bounds information.
|
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 |
Returns true if this event is active.
|
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 |
Returns true if this event can be processed by this processor.
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
|
virtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
Return true if this is a possible key up event for the given event.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |