#include <input_context.h>
Implementation | |
| class | CL_Win32Window |
| class | CL_X11Window |
Public Member Functions | |
Construction | |
| CL_InputContext () | |
| Constructs an input context. | |
| CL_InputContext (const CL_InputContext ©) | |
| Constructs a InputContext. | |
| ~CL_InputContext () | |
Attributes | |
| int | get_keyboard_count () const |
| Returns the number of keyboards available. | |
| int | get_mouse_count () const |
| Returns the number of mice available. | |
| int | get_joystick_count () const |
| Returns the number of joysticks available. | |
| int | get_tablet_count () const |
| Returns the number of tablets available. | |
| CL_InputDevice & | get_keyboard (int keyboard=0) |
| Returns the input device for the specified keyboard. | |
| CL_InputDevice & | get_mouse (int mouse=0) |
| Returns the input device for the specified mouse. | |
| CL_InputDevice & | get_joystick (int joystick=0) |
| Returns the input device for the specified joystick. | |
| CL_InputDevice & | get_tablet (int tablet=0) |
| Returns the input device for the specified tablet. | |
| CL_InputDevice & | get_device (const CL_StringRef &device_name) |
| Returns the input device with the given devicename. | |
Operations | |
| CL_InputContext & | operator= (CL_InputContext ©) |
| Copy assignment operator. | |
| void | clear () |
| Removes all devices from this input context. | |
| void | add_keyboard (const CL_InputDevice keyboard) |
| Adds a new keyboard to the input context. | |
| void | add_mouse (const CL_InputDevice mouse) |
| Adds a new mouse to the input context. | |
| void | add_joystick (const CL_InputDevice joystick) |
| Adds a new joystick to the input context. | |
| void | add_tablet (const CL_InputDevice tablet) |
| Adds a new tablet to the input context. | |
| void | process_messages () |
| Process and dispatch messages to signals. | |
| bool | poll (bool peek_only) |
| Update device. | |
|
|
Constructs an input context.
|
|
|
Constructs a InputContext.
|
|
|
|
|
|
Adds a new joystick to the input context.
|
|
|
Adds a new keyboard to the input context.
|
|
|
Adds a new mouse to the input context.
|
|
|
Adds a new tablet to the input context.
|
|
|
Removes all devices from this input context.
|
|
|
Returns the input device with the given devicename.
|
|
|
Returns the input device for the specified joystick.
|
|
|
Returns the number of joysticks available.
|
|
|
Returns the input device for the specified keyboard.
|
|
|
Returns the number of keyboards available.
|
|
|
Returns the input device for the specified mouse.
|
|
|
Returns the number of mice available.
|
|
|
Returns the input device for the specified tablet.
|
|
|
Returns the number of tablets available.
|
|
|
Copy assignment operator.
|
|
|
Update device.
|
|
|
Process and dispatch messages to signals.
|
|
|
|
|
|
|
1.4.6