Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csJoystickDriver Class Reference

Generic Joystick driver.<. More...

#include <csinput.h>

Inheritance diagram for csJoystickDriver:

csInputDriver iJoystickDriver iBase List of all members.

Public Methods

 csJoystickDriver (iObjectRegistry *)
 Initialize joystick interface.

virtual ~csJoystickDriver ()

virtual void Reset ()
 Call to release all joystick buttons.

virtual int GetLastX (int number)
 Query last joystick X position.

virtual int GetLastY (int number)
 Query last joystick Y position.

virtual bool GetLastButton (int number, int button)
 Query the last known joystick button state.

virtual void DoButton (int number, int button, bool down, int x, int y)
 Call this to add a 'joystick button down/up' event to queue.

virtual void DoMotion (int number, int x, int y)
 Call this to add a 'joystick moved' event to queue.

virtual void LostFocus ()
 Application lost focus.

Public Attributes

csJoystickDriver::eiEventHandler  scfiEventHandler

Protected Methods

iKeyboardDriverGetKeyboardDriver ()
 Get the generic keyboard driver (for checking modifier states).

Protected Attributes

 Joystick button states.

 Joystick axis positions.

 Joystick axis positions.


class  eiEventHandler

Detailed Description

Generic Joystick driver.<.

p> The joystick driver is responsible for tracking current joystick state and also for generating joystick events.

The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000