FIFE  be64c707dea6b3250bd4355bf5c825d25920087d
FIFE::IJoystickListener Class Referenceabstract

Listener of joystick events. More...

#include <ijoysticklistener.h>

+ Inheritance diagram for FIFE::IJoystickListener:
+ Collaboration diagram for FIFE::IJoystickListener:

Public Member Functions

virtual void axisMotion (JoystickEvent &evt)=0
 Called on a axis motion event. More...
 
virtual void hatMotion (JoystickEvent &evt)=0
 Called on a hat motion event. More...
 
virtual void buttonPressed (JoystickEvent &evt)=0
 Called on a button pressed event. More...
 
virtual void buttonReleased (JoystickEvent &evt)=0
 Called on a button released event. More...
 
virtual void deviceAdded (JoystickEvent &evt)=0
 Called on a device added event. More...
 
virtual void deviceRemoved (JoystickEvent &evt)=0
 Called on a device removed event. More...
 
virtual ~IJoystickListener ()
 
- Public Member Functions inherited from FIFE::IListener
virtual bool isActive ()
 Indicates if the listener is active. More...
 
virtual void setActive (bool active)
 Changes the listener status. More...
 
virtual ~IListener ()
 

Additional Inherited Members

- Protected Member Functions inherited from FIFE::IListener
 IListener ()
 

Detailed Description

Listener of joystick events.

To be able to listen for joystick events you must make a class which inherits from this class and implements its functions.

Definition at line 44 of file ijoysticklistener.h.

Constructor & Destructor Documentation

◆ ~IJoystickListener()

virtual FIFE::IJoystickListener::~IJoystickListener ( )
inlinevirtual

Definition at line 77 of file ijoysticklistener.h.

Member Function Documentation

◆ axisMotion()

virtual void FIFE::IJoystickListener::axisMotion ( JoystickEvent evt)
pure virtual

Called on a axis motion event.

Parameters
evtJoystickEvent that describes the event.

◆ buttonPressed()

virtual void FIFE::IJoystickListener::buttonPressed ( JoystickEvent evt)
pure virtual

Called on a button pressed event.

Parameters
evtJoystickEvent that describes the event.

◆ buttonReleased()

virtual void FIFE::IJoystickListener::buttonReleased ( JoystickEvent evt)
pure virtual

Called on a button released event.

Parameters
evtJoystickEvent that describes the event.

◆ deviceAdded()

virtual void FIFE::IJoystickListener::deviceAdded ( JoystickEvent evt)
pure virtual

Called on a device added event.

Parameters
evtJoystickEvent that describes the event.

◆ deviceRemoved()

virtual void FIFE::IJoystickListener::deviceRemoved ( JoystickEvent evt)
pure virtual

Called on a device removed event.

Parameters
evtJoystickEvent that describes the event.

◆ hatMotion()

virtual void FIFE::IJoystickListener::hatMotion ( JoystickEvent evt)
pure virtual

Called on a hat motion event.

Parameters
evtJoystickEvent that describes the event.

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