CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

iJoystickDriver Struct Reference
[Event handling]

Generic Joystick driver. More...

#include <csinput.h>

Inheritance diagram for iJoystickDriver:

iBase csJoystickDriver List of all members.

Public Methods

virtual void Reset ()=0
 Call to release all joystick buttons (when focus switches from application window, for example). More...

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

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

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

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

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


Detailed Description

Generic Joystick driver.

The joystick driver is responsible for tracking current joystick state and also for generating joystick events. Typically, one instance of this object is available from the shared-object registry (iObjectRegistry) under the name "crystalspace.driver.input.generic.joystick".

Definition at line 115 of file iutil/csinput.h.


Member Function Documentation

virtual void iJoystickDriver::DoButton int    number,
int    button,
bool    down,
int    x,
int    y
[pure virtual]
 

Call this to add a 'joystick button down/up' event to queue.

Implemented in csJoystickDriver.

virtual void iJoystickDriver::DoMotion int    number,
int    x,
int    y
[pure virtual]
 

Call this to add a 'joystick moved' event to queue.

Implemented in csJoystickDriver.

virtual bool iJoystickDriver::GetLastButton int    number,
int    button
[pure virtual]
 

Query the last known joystick button state.

Implemented in csJoystickDriver.

virtual int iJoystickDriver::GetLastX int    number [pure virtual]
 

Query last joystick X position.

Implemented in csJoystickDriver.

virtual int iJoystickDriver::GetLastY int    number [pure virtual]
 

Query last joystick Y position.

Implemented in csJoystickDriver.

virtual void iJoystickDriver::Reset   [pure virtual]
 

Call to release all joystick buttons (when focus switches from application window, for example).

Implemented in csJoystickDriver.


The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.2.14