Home | All Classes | Grouped Classes | Index | Search

Class CL_InputContext

Input events interface. More...

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

#include <ClanLib/display.h>

Construction:

CL_InputContext

Constructs an input context.

Attributes:

get_keyboard_count

Returns the number of keyboards available.

get_mouse_count

Returns the number of mice available.

get_joystick_count

Returns the number of joysticks available.

get_keyboard

Returns the input device for the specified keyboard.

get_mouse

Returns the input device for the specified mouse.

get_joystick

Returns the input device for the specified joystick.

get_device

Returns the input device with the given devicename

Operations:

operator =

Copy assignment operator.

clear

Removes all devices from this input context.

add_keyboard

Adds a new keyboard to the input context.

add_mouse

Adds a new mouse to the input context.

add_joystick

Adds a new joystick to the input context.

Detailed description:

!group=Display/Input! !header=display.h!

An input context is a collection of inputdevices available in a displaywindow.



Questions or comments, write to the
ClanLib mailing list.