VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions
makVrv::DtGameControllerEventHandler Class Reference

Handler that you insert into the manager to be made aware of game controller events. More...

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

Public Member Functions

 DtGameControllerEventHandler ()
virtual ~DtGameControllerEventHandler ()
virtual bool gameControllerEvent (DtGenericControllerEvent *)=0
 Return true to handle the event and not allow other events to handle.
virtual bool canProcessEvent (DtGenericControllerEvent *) const
 Return true if this event can be processed by this handler.
virtual void tick (bool sentEvents)
 Called after game controller events are processed in any given tick.
virtual void gameControllerDeviceRemoved (int)
 Called when a game controller device is removed.
virtual void gameControllerDeviceAdded (int)
 Called when a game controller device is added.
virtual bool filterGameControllerEvent (DtGenericControllerEvent *)
 Return true to filter this Game controller Event.
virtual void noQueuedEvents ()
 Called when there were events but now there are no longer queued events.
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.

Detailed Description

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.

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 Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)