Orxonox  0.0.5 Codename: Arcturus
Public Member Functions | List of all members
OIS::JoyStickListener Class Referenceabstract

To recieve buffered joystick input, derive a class from this, and implement the methods here. More...

#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/external/ois/OISJoyStick.h>

Inheritance diagram for OIS::JoyStickListener:
orxonox::JoyStick

Public Member Functions

virtual ~JoyStickListener ()
 
virtual bool axisMoved (const JoyStickEvent &arg, int axis)=0
 
virtual bool buttonPressed (const JoyStickEvent &arg, int button)=0
 
virtual bool buttonReleased (const JoyStickEvent &arg, int button)=0
 
virtual bool povMoved (const JoyStickEvent &arg, int index)
 Joystick Event, and povID. More...
 
virtual bool sliderMoved (const JoyStickEvent &, int index)
 Joystick Event, and sliderID. More...
 
virtual bool vector3Moved (const JoyStickEvent &arg, int index)
 Joystick Event, and Vector3ID. More...
 

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.

Constructor & Destructor Documentation

virtual OIS::JoyStickListener::~JoyStickListener ( )
inlinevirtual

Member Function Documentation

virtual bool OIS::JoyStickListener::axisMoved ( const JoyStickEvent arg,
int  axis 
)
pure virtual
Remarks
Joystick axis moved event

Implemented in orxonox::JoyStick.

virtual bool OIS::JoyStickListener::buttonPressed ( const JoyStickEvent arg,
int  button 
)
pure virtual
Remarks
Joystick button down event

Implemented in orxonox::JoyStick.

virtual bool OIS::JoyStickListener::buttonReleased ( const JoyStickEvent arg,
int  button 
)
pure virtual
Remarks
Joystick button up event

Implemented in orxonox::JoyStick.

virtual bool OIS::JoyStickListener::povMoved ( const JoyStickEvent arg,
int  index 
)
inlinevirtual

Joystick Event, and povID.

Reimplemented in orxonox::JoyStick.

virtual bool OIS::JoyStickListener::sliderMoved ( const JoyStickEvent ,
int  index 
)
inlinevirtual

Joystick Event, and sliderID.

Reimplemented in orxonox::JoyStick.

virtual bool OIS::JoyStickListener::vector3Moved ( const JoyStickEvent arg,
int  index 
)
inlinevirtual

Joystick Event, and Vector3ID.

Reimplemented in orxonox::JoyStick.


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