#include <input_joystick.h>
Inheritance diagram for CL_Joystick_Win32:


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_InputButton* | get_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_InputAxis* | get_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_InputHat* | get_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_InputCursor* | get_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 |
|
|
|
|
|
|
|
|
|
|
|
retval: Number of axes available.
Reimplemented from CL_InputDevice. |
|
|
retval: Return the number of buttons available.
Reimplemented from CL_InputDevice. |
|
|
retval: Number of cursors available.
Reimplemented from CL_InputDevice. |
|
|
retval: Number of input hats available.
Reimplemented from CL_InputDevice. |
|
|
Reimplemented from CL_InputDevice. |
|
|
param: button_num - Number of the button to be returned.retval: Pointer to the button requested (or NULL if none).
Reimplemented from CL_InputDevice. |
|
|
retval: Name of the device.
Reimplemented from CL_InputDevice. |
|
|
param: hat_num - Number of the hat to be returned.retval: Pointer to input hat requested (or NULL if none).
Reimplemented from CL_InputDevice. |
|
|
param: axis_num - Number of the axis to be returned.retval: Pointer to axis requested (or NULL if none).
Reimplemented from CL_InputDevice. |
|
|
Reimplemented from CL_KeepAlive. |
|
|
Definition at line 64 of file input_joystick.h. |
|
|
Definition at line 65 of file input_joystick.h. |
|
|
Definition at line 66 of file input_joystick.h. |
|
|
Definition at line 62 of file input_joystick.h. |
|
|
Definition at line 61 of file input_joystick.h. |
1.2.6 written by Dimitri van Heesch,
© 1997-2001