All Classes |Grouped Classes |Index

Class CL_InputDeviceProvider

Interface for implementing a CL_InputDevice source. More...

Derived from:

public CL_DisposableObject

Derived by:

None

Group:

Display Target Interface (Display)

#include <ClanLib/display.h>

Class Members:

Construction:

destroy

Destroys the input device provider.


Attributes:

get_name

Returns the human readable name of the device (i.e. 'Microsoft Sidewinder 3D').

get_device_name

Return the hardware id/device for this device (i.e. /dev/input/js0)

get_type

Returns the input device type.

get_key_name

Friendly key name for specified identifier (A, B, Leertaste, Backspace, Mouse Left, ...).

supports_keyid_mapping

Returns true if this provider implements keyid to/from string mapping.

keyid_to_string

Returns a generic string name for the specified key code.

string_to_keyid

Returns the key code for the specified generic string key name.

get_keycode

Returns true if the passed key code is down for this device.

get_x

Returns the x position of the device.

get_y

Returns the y position of the device.

get_axis

Returns the the current position of a joystick axis.

get_axis_count

Returns the number of axes available on this device.

get_button_count

Returns the number of buttons available on this device.

in_proximity

Returns the input device is in proximity mode. (Atm applicapble only to tablet.)


Operations:

init

Initialize input device provider.

set_position

Sets the position of the device.

poll

Update device.

dispose

is_disposed

throw_if_disposed