Home | All Classes | Grouped Classes | Index | Search

Class CL_InputDevice

General input device. More...

Derived from: none
Derived by: none
Group: Display (Input)

#include <ClanLib/display.h>

Construction:

CL_InputDevice

Constructs an input device.

Attributes:

get_type

Returns the input device type.

get_key_name

Key name for specified identifier (A, B, Space, Backspace, Mouse Left).

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.

Operations:

operator =

set_position

Sets the position of the device.

Signals:

sig_key_down

Signal emitted when key is pressed.

sig_key_up

Signal emitted when key is released.

sig_key_dblclk

Signal emitted when key is double clicked.

sig_move

Signal emitted when specified device is moved.

Implementation:

Detailed description:



Questions or comments, write to the
ClanLib mailing list.