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

CL_InputDevice Class Reference

#include <inputdevice.h>

Inheritance diagram for CL_InputDevice:

Inheritance graph
[legend]
List of all members.

Public Methods

virtual ~CL_InputDevice ()
virtual char* get_name () const=0
virtual int get_num_buttons () const=0
 retval: Name of the device.

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

virtual int get_num_axes () const=0
 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)=0
 retval: Number of axes available.

virtual int get_num_hats () const=0
 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)=0
 retval: Number of input hats available.

virtual int get_num_cursors () const=0
 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)=0
 retval: Number of cursors available.


Constructor & Destructor Documentation

CL_InputDevice::~CL_InputDevice ( ) [inline, virtual]
 

Definition at line 32 of file inputdevice.h.


Member Function Documentation

CL_InputAxis * CL_InputDevice::get_axis ( int axis_num ) [pure virtual]
 

retval: Number of axes available.

Reimplemented in CL_BeKeyboard, CL_Joystick_Win32, CL_Keyboard_Win32, and CL_Mouse_Win32.

CL_InputButton * CL_InputDevice::get_button ( int button_num ) [pure virtual]
 

retval: Return the number of buttons available.

Reimplemented in CL_BeKeyboard, CL_Joystick_Win32, CL_Keyboard_Win32, and CL_Mouse_Win32.

CL_InputCursor * CL_InputDevice::get_cursor ( int cursor_num ) [pure virtual]
 

retval: Number of cursors available.

Reimplemented in CL_BeKeyboard, CL_Joystick_Win32, CL_Keyboard_Win32, and CL_Mouse_Win32.

CL_InputHat * CL_InputDevice::get_hat ( int hat_num ) [pure virtual]
 

retval: Number of input hats available.

Reimplemented in CL_BeKeyboard, CL_Joystick_Win32, CL_Keyboard_Win32, and CL_Mouse_Win32.

virtual char* CL_InputDevice::get_name ( ) const [pure virtual]
 

Reimplemented in CL_BeKeyboard, CL_Joystick_Win32, CL_Keyboard_Win32, and CL_Mouse_Win32.

int CL_InputDevice::get_num_axes ( ) const [pure virtual]
 

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

Reimplemented in CL_BeKeyboard, CL_Joystick_Win32, CL_Keyboard_Win32, and CL_Mouse_Win32.

int CL_InputDevice::get_num_buttons ( ) const [pure virtual]
 

retval: Name of the device.

Reimplemented in CL_BeKeyboard, CL_Joystick_Win32, CL_Keyboard_Win32, and CL_Mouse_Win32.

int CL_InputDevice::get_num_cursors ( ) const [pure virtual]
 

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

Reimplemented in CL_BeKeyboard, CL_Joystick_Win32, CL_Keyboard_Win32, and CL_Mouse_Win32.

int CL_InputDevice::get_num_hats ( ) const [pure virtual]
 

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

Reimplemented in CL_BeKeyboard, CL_Joystick_Win32, CL_Keyboard_Win32, and CL_Mouse_Win32.


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