OIS::JoyStickListener Class Reference

#include <OISJoyStick.h>

Inheritance diagram for OIS::JoyStickListener:
[legend]

List of all members.

Public Member Functions

virtual ~JoyStickListener ()
virtual bool buttonPressed (const JoyStickEvent &arg, int button)=0
virtual bool buttonReleased (const JoyStickEvent &arg, int button)=0
virtual bool axisMoved (const JoyStickEvent &arg, int axis)=0
virtual bool sliderMoved (const JoyStickEvent &, int)
virtual bool povMoved (const JoyStickEvent &, int)


Detailed Description

To recieve buffered joystick input, derive a class from this, and implement the methods here. Then set the call back to your JoyStick instance with JoyStick::setEventCallback Each JoyStick instance can use the same callback class, as a devID number will be provided to differentiate between connected joysticks. Of course, each can have a seperate callback instead.

Definition at line 112 of file OISJoyStick.h.


Constructor & Destructor Documentation

virtual OIS::JoyStickListener::~JoyStickListener (  )  [inline, virtual]

Definition at line 115 of file OISJoyStick.h.


Member Function Documentation

virtual bool OIS::JoyStickListener::buttonPressed ( const JoyStickEvent arg,
int  button 
) [pure virtual]

Implemented in EventHandler, and EventHandler.

Referenced by OIS::Win32JoyStick::_doButtonClick(), and OIS::LinuxJoyStick::capture().

virtual bool OIS::JoyStickListener::buttonReleased ( const JoyStickEvent arg,
int  button 
) [pure virtual]

Implemented in EventHandler, and EventHandler.

Referenced by OIS::Win32JoyStick::_doButtonClick(), and OIS::LinuxJoyStick::capture().

virtual bool OIS::JoyStickListener::axisMoved ( const JoyStickEvent arg,
int  axis 
) [pure virtual]

Implemented in EventHandler, and EventHandler.

Referenced by OIS::LinuxJoyStick::capture().

virtual bool OIS::JoyStickListener::sliderMoved ( const JoyStickEvent ,
int   
) [inline, virtual]

Definition at line 123 of file OISJoyStick.h.

virtual bool OIS::JoyStickListener::povMoved ( const JoyStickEvent ,
int   
) [inline, virtual]

Reimplemented in EventHandler, and EventHandler.

Definition at line 125 of file OISJoyStick.h.

Referenced by OIS::Win32JoyStick::_changePOV(), and OIS::LinuxJoyStick::capture().


The documentation for this class was generated from the following file:
Generated on Sat Dec 1 20:13:55 2007 for OIS by  doxygen 1.5.4