#include <event_deprecated.h>
Data Fields | |
EventType | type |
Type of the event. More... | |
int32_t | device_id |
Device that this event originated from. More... | |
int32_t | source_id |
Source that this event originated from. More... | |
int32_t | action |
Action signalled by this event. More... | |
int32_t | flags |
Flags associated with this event. More... | |
int32_t | meta_state |
State of the meta modifiers (ALT, CTRL, SHIFT). More... | |
union { | |
struct HardwareSwitchEvent { | |
nsecs_t event_time | |
Timestamp when the event happened. More... | |
uint32_t policy_flags | |
Policy flags. More... | |
int32_t switch_code | |
The scan code of the switch. More... | |
int32_t switch_value | |
The value reported by the switch. More... | |
} hw_switch | |
struct KeyEvent { | |
int32_t key_code | |
int32_t scan_code | |
int32_t repeat_count | |
nsecs_t down_time | |
nsecs_t event_time | |
int is_system_key | |
} key | |
struct MotionEvent { | |
int32_t edge_flags | |
Set for touches intersecting a touchscreen's edges, requires HW support. More... | |
int32_t button_state | |
State of buttons of the device. More... | |
float x_offset | |
Movement in x direction since down event. More... | |
float y_offset | |
Movement in y direction since down event. More... | |
float x_precision | |
Sampling precision in x direction. More... | |
float y_precision | |
Sampling precision in y direction. More... | |
nsecs_t down_time | |
Timestamp that marks the down event. More... | |
nsecs_t event_time | |
Timestamp that marks when this event happened. More... | |
size_t pointer_count | |
Number of pointers reported in this event. More... | |
struct PointerCoordinate pointer_coordinates [UBUNTU_APPLICATION_UI_INPUT_EVENT_MAX_POINTER_COUNT] | |
Pointer information, valid from [0,pointer_count). More... | |
} motion | |
} | details |
Models an input event.
Definition at line 35 of file event_deprecated.h.
int32_t Event::action |
Action signalled by this event.
Definition at line 40 of file event_deprecated.h.
int32_t Event::button_state |
State of buttons of the device.
Definition at line 71 of file event_deprecated.h.
union { ... } Event::details |
Information specific to key/motion event types.
int32_t Event::device_id |
Device that this event originated from.
Definition at line 38 of file event_deprecated.h.
nsecs_t Event::down_time |
Timestamp that marks the down event.
Definition at line 60 of file event_deprecated.h.
int32_t Event::edge_flags |
Set for touches intersecting a touchscreen's edges, requires HW support.
Definition at line 70 of file event_deprecated.h.
nsecs_t Event::event_time |
Timestamp when the event happened.
Timestamp that marks when this event happened.
Definition at line 49 of file event_deprecated.h.
int32_t Event::flags |
Flags associated with this event.
Definition at line 41 of file event_deprecated.h.
struct { ... } ::HardwareSwitchEvent Event::hw_switch |
int Event::is_system_key |
Definition at line 62 of file event_deprecated.h.
struct { ... } ::KeyEvent Event::key |
int32_t Event::key_code |
Definition at line 57 of file event_deprecated.h.
int32_t Event::meta_state |
State of the meta modifiers (ALT, CTRL, SHIFT).
Definition at line 42 of file event_deprecated.h.
struct { ... } ::MotionEvent Event::motion |
struct PointerCoordinate Event::pointer_coordinates[UBUNTU_APPLICATION_UI_INPUT_EVENT_MAX_POINTER_COUNT] |
Pointer information, valid from [0,pointer_count).
Definition at line 79 of file event_deprecated.h.
size_t Event::pointer_count |
Number of pointers reported in this event.
Definition at line 78 of file event_deprecated.h.
uint32_t Event::policy_flags |
Policy flags.
Definition at line 50 of file event_deprecated.h.
int32_t Event::repeat_count |
Definition at line 59 of file event_deprecated.h.
int32_t Event::scan_code |
Definition at line 58 of file event_deprecated.h.
int32_t Event::source_id |
Source that this event originated from.
Definition at line 39 of file event_deprecated.h.
int32_t Event::switch_code |
The scan code of the switch.
Definition at line 51 of file event_deprecated.h.
int32_t Event::switch_value |
The value reported by the switch.
Definition at line 52 of file event_deprecated.h.
EventType Event::type |
Type of the event.
Definition at line 37 of file event_deprecated.h.
float Event::x_offset |
Movement in x direction since down event.
Definition at line 72 of file event_deprecated.h.
float Event::x_precision |
Sampling precision in x direction.
Definition at line 74 of file event_deprecated.h.
float Event::y_offset |
Movement in y direction since down event.
Definition at line 73 of file event_deprecated.h.
float Event::y_precision |
Sampling precision in y direction.
Definition at line 75 of file event_deprecated.h.