![]() | |
![]() | ![]() |
Entire Class Index | Main Class Index | Cross Index | Global Index |
Input device interface.
Contained in: global
Derived from:
none
Derived by:
CL_Keyboard
CL_Mouse
Group: Display (Input)
#include <ClanLib/display.h>
public function member index: |
||
Construction: |
||
virtual | ~CL_InputDevice | (); |
Attributes: |
||
virtual char* | get_name | () const; |
virtual InputDeviceType | get_type | () const; |
virtual int | get_num_buttons | () const; |
virtual CL_InputButton* | get_button | (int button_num); |
virtual int | get_num_axes | () const; |
virtual CL_InputAxis* | get_axis | (int axis_num); |
virtual int | get_num_hats | () const; |
virtual CL_InputHat* | get_hat | (int hat_num); |
virtual int | get_num_cursors | () const; |
virtual CL_InputCursor* | get_cursor | (int cursor_num); |
axis_num - Number of the axis to be returned.
Returns - Pointer to axis requested (or NULL if none).
button_num - Number of the button to be returned.
Returns - Pointer to the button requested (or NULL if none).
cursor_num - Number of the cursor to be returned.
Returns - Pointer to cursor requested (or NULL if none).
hat_num - Number of the hat to be returned.
Returns - Pointer to input hat requested (or NULL if none).
Returns - Name of the device.
Returns - Number of axes available.
Returns - Return the number of buttons available.
Returns - Number of cursors available.
Returns - Number of input hats available.