18 #ifndef UBUNTU_APPLICATION_UI_INPUT_EVENT_H_
19 #define UBUNTU_APPLICATION_UI_INPUT_EVENT_H_
74 #define U_MOTION_ACTION_POINTER_INDEX_SHIFT 8
75 #define U_MOTION_ACTION_MASK 0xff
76 #define U_MOTION_ACTION_POINTER_INDEX_MASK 0xff00
106 #define UBUNTU_APPLICATION_UI_INPUT_EVENT_MAX_POINTER_COUNT (16)
132 struct HardwareSwitchEvent
164 struct PointerCoordinate
183 #endif // UBUNTU_APPLICATION_UI_INPUT_EVENT_H_
float y_offset
Movement in y direction since down event.
size_t pointer_count
Number of pointers reported in this event.
int32_t button_state
State of buttons of the device.
Event originates from an additional button attached to the device's HW, e.g., power button...
#define UBUNTU_APPLICATION_UI_INPUT_EVENT_MAX_POINTER_COUNT
Event originates from a keyboard.
Event originates from something moving, e.g., a wheel, a mouse, a finger on a touchpad.
int32_t flags
Flags associated with this event.
int32_t switch_value
The value reported by the switch.
float pressure
Pressure of the touch.
float orientation
Orientation.
float touch_major
Touch major coordinate.
int32_t action
Action signalled by this event.
float x_precision
Sampling precision in x direction.
int id
Unique id of the pointer.
float size
Size of the pointer/touch.
float touch_minor
Touch minor coordinate.
int32_t meta_state
State of the meta modifiers (ALT, CTRL, SHIFT).
uint32_t policy_flags
Policy flags.
int32_t edge_flags
Set for touches intersecting a touchscreen's edges, requires HW support.
float x_offset
Movement in x direction since down event.
nsecs_t event_time
Timestamp when the event happened.
float y_precision
Sampling precision in y direction.
EventType type
Type of the event.
int32_t switch_code
The scan code of the switch.
int32_t source_id
Source that this event originated from.
nsecs_t down_time
Timestamp that marks the down event.
int32_t device_id
Device that this event originated from.