Input event class. More...
#include <input_event.h>
Public Types | |
enum | TabletAxisID { x_axis = 0, y_axis = 1, z_axis = 2, tilt_x = 3, tilt_y = 4, rotation_pitch = 6, rotation_roll = 7, rotation_yaw = 8, proximity_enter = 9, proximity_exit = 10 } |
Tablet axis id's. More... | |
enum | Type { no_key = 0, pressed = 1, released = 2, doubleclick = 3, pointer_moved = 4, axis_moved = 5, proximity_change = 6 } |
Event types. More... | |
Public Member Functions | |
Construction | |
CL_InputEvent () | |
Constructs a 'NoKey' key. | |
~CL_InputEvent () | |
Public Attributes | |
Operations | |
int | id |
Key or axis identifier. | |
CL_String | str |
Character sequence generated by event. | |
Type | type |
Event type. | |
CL_InputDevice | device |
Device that event originates from. | |
CL_Point | mouse_pos |
Mouse position at event time. | |
double | axis_pos |
Axis position. | |
int | repeat_count |
The repeat count for this event. | |
bool | alt |
State of modifier keys. | |
bool | shift |
bool | ctrl |
Input event class.
enum CL_InputEvent::Type |
CL_InputEvent::CL_InputEvent | ( | ) |
Constructs a 'NoKey' key.
CL_InputEvent::~CL_InputEvent | ( | ) |
bool CL_InputEvent::alt |
State of modifier keys.
double CL_InputEvent::axis_pos |
Axis position.
bool CL_InputEvent::ctrl |
Device that event originates from.
Key or axis identifier.
Mouse position at event time.
The repeat count for this event.
The variable contains the number of times the keystroke is autorepeated as a result of the user holding down the key.
bool CL_InputEvent::shift |
Character sequence generated by event.
A key press can generate one, none or multiple characters, the reason for this are deadkeys, ie. press ^ + a and get ^, so the first press would generate no key and the second one, in case that the second key being pressed doesn't support the ^ it would generate two characters (ie. ^ + 5 => "", "^5")
Event type.