VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
makVrv::DtGameControllerEventHandler Class Referenceabstract

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.

Inheritance diagram for makVrv::DtGameControllerEventHandler:
Inheritance graph
[legend]

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)
 

Constructor & Destructor Documentation

makVrv::DtGameControllerEventHandler::DtGameControllerEventHandler ( )
inline
virtual makVrv::DtGameControllerEventHandler::~DtGameControllerEventHandler ( )
inlinevirtual

Member Function Documentation

virtual bool makVrv::DtGameControllerEventHandler::gameControllerEvent ( DtGenericControllerEvent )
pure virtual

Return true to handle the event and not allow other events to handle.

Implemented in makVrv::DtButtonChoiceDialog, makVrv::DtAxisConfigurationSelectionDialog, and makVrv::DtJoystickFunctionEnableHandler.

virtual bool makVrv::DtGameControllerEventHandler::canProcessEvent ( DtGenericControllerEvent ) const
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.

virtual void makVrv::DtGameControllerEventHandler::tick ( bool  sentEvents)
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.

virtual void makVrv::DtGameControllerEventHandler::gameControllerDeviceRemoved ( int  )
inlinevirtual

Called when a game controller device is removed.

Reimplemented in makVrv::DtButtonChoiceDialog, makVrv::DtJoystickFunctionEnableHandler, and makVrf::DtVrfGuiJoystickControlHandler.

virtual void makVrv::DtGameControllerEventHandler::gameControllerDeviceAdded ( int  )
inlinevirtual

Called when a game controller device is added.

Reimplemented in makVrv::DtButtonChoiceDialog, and makVrv::DtJoystickFunctionEnableHandler.

virtual bool makVrv::DtGameControllerEventHandler::filterGameControllerEvent ( DtGenericControllerEvent )
inlinevirtual

Return true to filter this Game controller Event.

Reimplemented in makVrv::DtButtonChoiceDialog, makVrv::DtJoystickFunctionEnableHandler, and makVrv::DtAxisConfigurationSelectionDialog.

virtual void makVrv::DtGameControllerEventHandler::noQueuedEvents ( )
inlinevirtual

Called when there were events but now there are no longer queued events.

Reimplemented in makVrv::DtButtonChoiceDialog, and makVrv::DtJoystickFunctionEnableHandler.

virtual void makVrv::DtGameControllerEventHandler::gameControlInformationAdded ( const std::string &  configuration,
const std::string &  functionGroup,
const std::string &  function,
const DtGameControlInformation i 
)
inlinevirtual

Called when game controller information is added or updated for the given configuration, function group and function.

Reimplemented in makVrv::DtJoystickFunctionEnableHandler.


The documentation for this class was generated from the following file:

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)