Handler that will manage the objects that are taken control of for joystick controls and process the events to apply to them via the joystickFunctionFired() pure method.
More...
|
| virtual bool | filterGameControllerEvent (DtGenericControllerEvent *) |
| | Return true to filter this Game controller Event. More...
|
| |
| 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. More...
|
| |
| virtual void | activateFunctionGroup (const std::string &configuration, const std::string &) |
| | Will activate all functions within the function group. More...
|
| |
| virtual void | deactivateFunctionGroup (const std::string &configuration, const std::string &) |
| | Will deactivate all functions within the function group. More...
|
| |
| 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. More...
|
| |
| 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. More...
|
| |
| virtual bool | joystickFunctionFired (const std::string &functionGroup, const std::string &function, double value, bool repeat, bool valueChanged)=0 |
| | Called when a game control processor fires off. More...
|
| |
Handler that will manage the objects that are taken control of for joystick controls and process the events to apply to them via the joystickFunctionFired() pure method.
Devices that are controlled and their current status.
Configurations that are controlled and their current switch status.
Queue of funcutons that wish to get a repeat of an event if that event is not triggered (such as a button press)
| makVrv::DtJoystickFunctionEnableHandler::DtJoystickFunctionEnableHandler |
( |
DtDe & |
| ) |
|
| virtual makVrv::DtJoystickFunctionEnableHandler::~DtJoystickFunctionEnableHandler |
( |
| ) |
|
|
virtual |
| virtual void makVrv::DtJoystickFunctionEnableHandler::tick |
( |
bool |
sentEvents | ) |
|
|
virtual |
Called after game controller events are processed in any given tick.
If sentEvents is true some game controller event was sent this tick
Reimplemented from makVrv::DtGameControllerEventHandler.
| virtual void makVrv::DtJoystickFunctionEnableHandler::gameControllerDeviceRemoved |
( |
int |
| ) |
|
|
virtual |
| virtual void makVrv::DtJoystickFunctionEnableHandler::gameControllerDeviceAdded |
( |
int |
| ) |
|
|
virtual |
| virtual bool makVrv::DtJoystickFunctionEnableHandler::enableJoystickFunctions |
( |
const std::string & |
configuration, |
|
|
const std::set< std::string > & |
functionalGroups, |
|
|
std::set< std::string > & |
enabled |
|
) |
| |
|
virtual |
Enables the joystick function for handling via this handler, if not already enabled.
If not already, will increase lock count of joystick manager for changes. The last parameter will contain the list of functions enabled
| virtual bool makVrv::DtJoystickFunctionEnableHandler::inControlOfConfiguration |
( |
const std::string & |
configuration | ) |
const |
|
virtual |
Whether or not this handler is in control of the configuration.
| virtual bool makVrv::DtJoystickFunctionEnableHandler::disableJoystickFunctions |
( |
const std::set< std::string > & |
functionalGroups, |
|
|
std::set< std::string > & |
disabled |
|
) |
| |
|
virtual |
Disables the joystick functions, if enabled.
If no functions are controlled will decrease lock count on joystick manager. If no function groups are given all controlled groups are cleared
| virtual std::set<std::string> makVrv::DtJoystickFunctionEnableHandler::controlledFunctionGroups |
( |
| ) |
const |
|
virtual |
Function groups currently controlled.
| virtual bool makVrv::DtJoystickFunctionEnableHandler::canFunctionGroupBeAssigned |
( |
const std::string & |
functionGroup | ) |
const |
|
virtual |
Returns true if this function group is not already in control of something.
Returns true if this event is active in any game processor.
| virtual bool makVrv::DtJoystickFunctionEnableHandler::anyFunctionGroupsActive |
( |
| ) |
const |
|
virtual |
Returns true if there are any function groups active.
| virtual void makVrv::DtJoystickFunctionEnableHandler::releaseAllControllerInformation |
( |
| ) |
|
|
virtual |
Releases control of all used configuration and function groups.
| virtual bool makVrv::DtJoystickFunctionEnableHandler::isFunctionGroupActive |
( |
const std::string & |
configuration, |
|
|
const std::string & |
|
|
) |
| const |
|
protectedvirtual |
Returns true if this function group is active. This will return true if any function within the group is active.
| virtual void makVrv::DtJoystickFunctionEnableHandler::activateFunctionGroup |
( |
const std::string & |
configuration, |
|
|
const std::string & |
|
|
) |
| |
|
protectedvirtual |
Will activate all functions within the function group.
| virtual void makVrv::DtJoystickFunctionEnableHandler::deactivateFunctionGroup |
( |
const std::string & |
configuration, |
|
|
const std::string & |
|
|
) |
| |
|
protectedvirtual |
Will deactivate all functions within the function group.
| virtual void makVrv::DtJoystickFunctionEnableHandler::switchControlOfFunction |
( |
const std::string & |
configuration, |
|
|
const std::string & |
functionGroup |
|
) |
| |
|
protectedvirtual |
| virtual void makVrv::DtJoystickFunctionEnableHandler::noQueuedEvents |
( |
| ) |
|
|
protectedvirtual |
| virtual void makVrv::DtJoystickFunctionEnableHandler::gameControlInformationAdded |
( |
const std::string & |
configuration, |
|
|
const std::string & |
functionGroup, |
|
|
const std::string & |
function, |
|
|
const DtGameControlInformation & |
i |
|
) |
| |
|
protectedvirtual |
Called when game controller information is added or updated for the given configuration, function group and function.
Update game control information if controlled
Reimplemented from makVrv::DtGameControllerEventHandler.
| virtual bool makVrv::DtJoystickFunctionEnableHandler::joystickFunctionFired |
( |
const std::string & |
functionGroup, |
|
|
const std::string & |
function, |
|
|
double |
value, |
|
|
bool |
repeat, |
|
|
bool |
valueChanged |
|
) |
| |
|
protectedpure virtual |
Called when a game control processor fires off.
Implement this to do something with the given function group, function and value of the processor. Return false to continue to look for another handler which might implement this event. Value changed will be true if the value has changed from the last period
Implemented in makVrf::DtVrfGuiJoystickControlHandler, and makVrv::DtJoystickObserverControl.
| InControlOf makVrv::DtJoystickFunctionEnableHandler::myInControlOf |
|
protected |
| RepeatQueue makVrv::DtJoystickFunctionEnableHandler::myRepeatQueue |
|
protected |
| DtDe& makVrv::DtJoystickFunctionEnableHandler::myDe |
|
protected |
The documentation for this class was generated from the following file: