CL_InputDevice3
Input device interface.
Overview
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).