NAME
CL_InputDevice - Input device interface.
DESCRIPTION
Class interface representing an input device, such as a keyboard, mouse, joystick, gamepad or digitizer.
CLASS MEMBERS
- virtual ~CL_InputDevice()
- virtual char *get_name()
- virtual int get_num_buttons()
- virtual CL_InputButton *get_button(
-
int button_num)
- virtual int get_num_axes()
- virtual CL_InputAxis *get_axis(
-
int axis_num)
- virtual int get_num_hats()
- virtual CL_InputHat *get_hat(
-
int hat_num)
- virtual int get_num_cursors()
- virtual CL_InputCursor *get_cursor(
-
int cursor_num)
MEMBERS WITH DESCRIPTIONS
- virtual ~CL_InputDevice()
-
Description:
- virtual char *get_name()
-
Description:
Returns the name of the input device.
Return value:
Name of the device.
- virtual int get_num_buttons()
-
Description:
Returns the number of buttons on this device.
Return value:
Return the number of buttons available.
- virtual CL_InputButton *get_button(
-
int button_num)
Parameters: button_num - Number of the button to be returned.
Description:
Returns a input button interface used to access the specified button number. NULL is returned if button doesn't exist.
Return value:
Pointer to the button requested (or NULL if none).
- virtual int get_num_axes()
-
Description:
Returns the number of axes on this device.
Return value:
Number of axes available.
- virtual CL_InputAxis *get_axis(
-
int axis_num)
Parameters: axis_num - Number of the axis to be returned.
Description:
Returns a input axis interface used to access the specified axis number. NULL is returned if axis doesn't exist.
Return value:
Pointer to axis requested (or NULL if none).
- virtual int get_num_hats()
-
Description:
Returns the number of hats available on this device.
Return value:
Number of input hats available.
- virtual CL_InputHat *get_hat(
-
int hat_num)
Parameters: hat_num - Number of the hat to be returned.
Description:
Returns a input hat interface used to access the specified hat number. NULL is returned if the hat doesn't exist.
Return value:
Pointer to input hat requested (or NULL if none).
- virtual int get_num_cursors()
-
Description:
Returns the number of input cursors available on this device.
Return value:
Number of cursors available.
- virtual CL_InputCursor *get_cursor(
-
int cursor_num)
Parameters: cursor_num - Number of the cursor to be returned.
Description:
Returns a input cursor interface used to access the specified cursor number. NULL is returned if the cursor doesn't exist.
Return value:
Pointer to cursor requested (or NULL if none).
SEE ALSO
All ClanLib API classes can be found in clanlib (3).
AUTHORS
Originally written by Magnus Norddahl <[email protected]> and Martin Starch <[email protected]>. ClanLib is now developed by the ClanLib Development team as an Open Source project.
The ClanLib man pages was created using the Perceps documentation system (another excellent piece of Open Source software, available at http://somewhere.in.the.world.org).
See clanlib (3) to find out how to get a full list of contributors and details on how to submit bug reports, comments etc.