![]() |
VR-Forces 4.10 Class Documentation
|
The DtGameControlInformation class contains information about how a function within a function group should be processed once active. More...
Classes | |
| struct | GameControlEvent |
Public Types | |
| enum | GameControllerFlags { TransitionUp = 0x00000001, TransitionDown = 0x00000002, Repeat = 0x00000004, ResetToZeroOnRelease = 0x00000008, Reverse = 0x00000010, Toggle = 0x00000020, SetTo = 0x00000040 } |
| typedef std::vector < GameControlEvent > | GameControlEvents |
Public Member Functions | |
| DtGameControlInformation () | |
| CTOR. More... | |
| virtual | ~DtGameControlInformation () |
| DTOR. More... | |
| void | addControllerEvent (const DtGenericControllerEvent &, int flags, double transitionValue, const std::string &controllerName, const std::string &controllerGuid) |
| void | addControllerEvent (int flags, double transitionValue, const std::string &controllerName, const std::string &controllerGuid) |
| Use this call to add a placeholder event. More... | |
| void | addControllerEvent (const GameControlEvent &) |
| void | addControllerEvents (const GameControlEvents &) |
| void | removeControllerEvent (const DtGenericControllerEvent &) |
| bool | eventMatches (DtGenericControllerEvent *rhs) const |
| Return true if any of the contained events matches the supplied event. More... | |
| bool | isMatchingUpEvent (DtGenericControllerEvent *e) const |
| Return true if, for any of the contained events, there is a possible key up or other button/HAT event for the given event. More... | |
| const GameControlEvents & | controllerEvents () const |
| bool | isSpecified () const |
| void | clear () |
| DtUnicode | controllerName () const |
| DtUnicode | descriptiveString () const |
| DtGameControlInformation & | operator= (const DtGameControlInformation &) |
Protected Member Functions | |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
| When the class Archive corresponds to an output archive, the & operator is defined similar to <<. More... | |
Protected Attributes | |
| GameControlEvents | myControllerEvents |
Friends | |
| class | boost::serialization::access |
The DtGameControlInformation class contains information about how a function within a function group should be processed once active.
The DtGameControlProcessor will use this information to set a value of a function to between the minimum and maximum. Regardless of the minimum and maximum, 0 is always considered at rest
| typedef std::vector<GameControlEvent> makVrv::DtGameControlInformation::GameControlEvents |
| makVrv::DtGameControlInformation::DtGameControlInformation | ( | ) |
CTOR.
|
virtual |
DTOR.
| void makVrv::DtGameControlInformation::addControllerEvent | ( | const DtGenericControllerEvent & | , |
| int | flags, | ||
| double | transitionValue, | ||
| const std::string & | controllerName, | ||
| const std::string & | controllerGuid | ||
| ) |
| void makVrv::DtGameControlInformation::addControllerEvent | ( | int | flags, |
| double | transitionValue, | ||
| const std::string & | controllerName, | ||
| const std::string & | controllerGuid | ||
| ) |
Use this call to add a placeholder event.
| void makVrv::DtGameControlInformation::addControllerEvent | ( | const GameControlEvent & | ) |
| void makVrv::DtGameControlInformation::addControllerEvents | ( | const GameControlEvents & | ) |
| void makVrv::DtGameControlInformation::removeControllerEvent | ( | const DtGenericControllerEvent & | ) |
| bool makVrv::DtGameControlInformation::eventMatches | ( | DtGenericControllerEvent * | rhs | ) | const |
Return true if any of the contained events matches the supplied event.
| bool makVrv::DtGameControlInformation::isMatchingUpEvent | ( | DtGenericControllerEvent * | e | ) | const |
Return true if, for any of the contained events, there is a possible key up or other button/HAT event for the given event.
|
inline |
|
inline |
| void makVrv::DtGameControlInformation::clear | ( | ) |
| DtUnicode makVrv::DtGameControlInformation::controllerName | ( | ) | const |
| DtUnicode makVrv::DtGameControlInformation::descriptiveString | ( | ) | const |
| DtGameControlInformation& makVrv::DtGameControlInformation::operator= | ( | const DtGameControlInformation & | ) |
|
inlineprotected |
When the class Archive corresponds to an output archive, the & operator is defined similar to <<.
Likewise, when the class Archive is a type of input archive the & operator is defined similar to >>.
|
friend |
|
protected |