Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

CL_Joystick_Win32 Class Reference

#include <input_joystick.h>

Inheritance diagram for CL_Joystick_Win32:

Inheritance graph
[legend]
Collaboration diagram for CL_Joystick_Win32:

Collaboration graph
[legend]
List of all members.

Public Methods

 CL_Joystick_Win32 (int joystick_id)
virtual ~CL_Joystick_Win32 ()
virtual char* get_name () const
virtual int get_num_buttons () const
 retval: Name of the device.

virtual CL_InputButtonget_button (int button_num)
 retval: Return the number of buttons available.

virtual int get_num_axes () const
 param: button_num - Number of the button to be returned.retval: Pointer to the button requested (or NULL if none).

virtual CL_InputAxisget_axis (int axis_num)
 retval: Number of axes available.

virtual int get_num_hats () const
 param: axis_num - Number of the axis to be returned.retval: Pointer to axis requested (or NULL if none).

virtual CL_InputHatget_hat (int hat_num)
 retval: Number of input hats available.

virtual int get_num_cursors () const
 param: hat_num - Number of the hat to be returned.retval: Pointer to input hat requested (or NULL if none).

virtual CL_InputCursorget_cursor (int cursor_num)
 retval: Number of cursors available.

virtual void keep_alive ()

Protected Methods

float calc_pos (int pos, int min, int max)

Protected Attributes

int joystick_id
JOYCAPS joycaps
CL_InputAxis_Joystick axes [6]
CL_InputButton_Joystick buttons [32]
CL_InputHat_Joystick hat

Constructor & Destructor Documentation

CL_Joystick_Win32::CL_Joystick_Win32 ( int joystick_id )
 

virtual CL_Joystick_Win32::~CL_Joystick_Win32 ( ) [virtual]
 


Member Function Documentation

float CL_Joystick_Win32::calc_pos ( int pos,
int min,
int max ) [protected]
 

virtual CL_InputAxis* CL_Joystick_Win32::get_axis ( int axis_num ) [virtual]
 

retval: Number of axes available.

Reimplemented from CL_InputDevice.

virtual CL_InputButton* CL_Joystick_Win32::get_button ( int button_num ) [virtual]
 

retval: Return the number of buttons available.

Reimplemented from CL_InputDevice.

virtual CL_InputCursor* CL_Joystick_Win32::get_cursor ( int cursor_num ) [virtual]
 

retval: Number of cursors available.

Reimplemented from CL_InputDevice.

virtual CL_InputHat* CL_Joystick_Win32::get_hat ( int hat_num ) [virtual]
 

retval: Number of input hats available.

Reimplemented from CL_InputDevice.

virtual char* CL_Joystick_Win32::get_name ( ) const [virtual]
 

Reimplemented from CL_InputDevice.

virtual int CL_Joystick_Win32::get_num_axes ( ) const [virtual]
 

param: button_num - Number of the button to be returned.retval: Pointer to the button requested (or NULL if none).

Reimplemented from CL_InputDevice.

virtual int CL_Joystick_Win32::get_num_buttons ( ) const [virtual]
 

retval: Name of the device.

Reimplemented from CL_InputDevice.

virtual int CL_Joystick_Win32::get_num_cursors ( ) const [virtual]
 

param: hat_num - Number of the hat to be returned.retval: Pointer to input hat requested (or NULL if none).

Reimplemented from CL_InputDevice.

virtual int CL_Joystick_Win32::get_num_hats ( ) const [virtual]
 

param: axis_num - Number of the axis to be returned.retval: Pointer to axis requested (or NULL if none).

Reimplemented from CL_InputDevice.

virtual void CL_Joystick_Win32::keep_alive ( ) [virtual]
 

Reimplemented from CL_KeepAlive.


Member Data Documentation

CL_InputAxis_Joystick CL_Joystick_Win32::axes[6] [protected]
 

Definition at line 64 of file input_joystick.h.

CL_InputButton_Joystick CL_Joystick_Win32::buttons[32] [protected]
 

Definition at line 65 of file input_joystick.h.

CL_InputHat_Joystick CL_Joystick_Win32::hat [protected]
 

Definition at line 66 of file input_joystick.h.

JOYCAPS CL_Joystick_Win32::joycaps [protected]
 

Definition at line 62 of file input_joystick.h.

int CL_Joystick_Win32::joystick_id [protected]
 

Definition at line 61 of file input_joystick.h.


The documentation for this class was generated from the following file:
Generated at Wed Apr 4 19:57:05 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001