![]() |
VR-Forces 5.0.1 Developer's Guide
|
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.
Public Member Functions | |
| DtGameControlProcessor (DtDe &) | |
| DtGameControlProcessor (const DtGameControlProcessor &) | |
| virtual | ~DtGameControlProcessor () |
| virtual void | setGameControls (const DtGameControlInformation &) |
| virtual DtGameControlProcessor & | operator= (const DtGameControlProcessor &) |
| virtual bool | updateFunctionStatus (DtGenericControllerEvent *, bool &repeat) |
| virtual bool | noQueuedEvents () |
| virtual bool | eventActive (DtGenericControllerEvent *) const |
| virtual bool | isReleaseEvent (DtGenericControllerEvent *e) const |
| virtual bool | canProcessEvent (DtGenericControllerEvent *) const |
| 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 &) |
| 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 |