![]() |
VR-Forces Developer's Guide
|
Handler that you insert into the manager to be made aware of game controller events. A subclass of this handler can be added to the joystick manager to be made aware of any joystick/keyboard event.

Public Member Functions | |
| DtGameControllerEventHandler () | |
| virtual | ~DtGameControllerEventHandler () |
| virtual bool | gameControllerEvent (DtGenericControllerEvent *)=0 |
| virtual bool | canProcessEvent (DtGenericControllerEvent *) const |
| virtual void | tick (bool sentEvents) |
| virtual void | gameControllerDeviceRemoved (int) |
| virtual void | gameControllerDeviceAdded (int) |
| virtual bool | filterGameControllerEvent (DtGenericControllerEvent *) |
| virtual void | noQueuedEvents () |
| virtual void | gameControlInformationAdded (const std::string &configuration, const std::string &functionGroup, const std::string &function, const DtGameControlInformation &i) |
|
inline |
|
inlinevirtual |
|
pure virtual |
Return true to handle the event and not allow other events to handle.
Implemented in makVrv::DtButtonChoiceDialog, makVrv::DtAxisConfigurationSelectionDialog, and makVrv::DtJoystickFunctionEnableHandler.
|
inlinevirtual |
Return true if this event can be processed by this handler. Return of false will filter the event for this handler.
Reimplemented in makVrv::DtJoystickFunctionEnableHandler.
|
inlinevirtual |
Called after game controller events are processed in any given tick. If sentEvents is true some game controller event was sent this tick.
Reimplemented in makVrv::DtButtonChoiceDialog, and makVrv::DtJoystickFunctionEnableHandler.
|
inlinevirtual |
Called when a game controller device is removed.
Reimplemented in makVrv::DtButtonChoiceDialog, makVrv::DtJoystickFunctionEnableHandler, and makVrf::DtVrfGuiJoystickControlHandler.
|
inlinevirtual |
Called when a game controller device is added.
Reimplemented in makVrv::DtButtonChoiceDialog, and makVrv::DtJoystickFunctionEnableHandler.
|
inlinevirtual |
Return true to filter this Game controller Event.
Reimplemented in makVrv::DtButtonChoiceDialog, makVrv::DtJoystickFunctionEnableHandler, and makVrv::DtAxisConfigurationSelectionDialog.
|
inlinevirtual |
Called when there were events but now there are no longer queued events.
Reimplemented in makVrv::DtButtonChoiceDialog, and makVrv::DtJoystickFunctionEnableHandler.
|
inlinevirtual |
Called when game controller information is added or updated for the given configuration, function group and function.
Reimplemented in makVrv::DtJoystickFunctionEnableHandler.