19 #ifndef UBUNTU_APPLICATION_UI_INPUT_EVENT_H_
20 #define UBUNTU_APPLICATION_UI_INPUT_EVENT_H_
76 #define U_MOTION_ACTION_POINTER_INDEX_SHIFT 8
77 #define U_MOTION_ACTION_MASK 0xff
78 #define U_MOTION_ACTION_POINTER_INDEX_MASK 0xff00
108 #define UBUNTU_APPLICATION_UI_INPUT_EVENT_MAX_POINTER_COUNT (16)
226 #endif // UBUNTU_APPLICATION_UI_INPUT_EVENT_H_
int32_t width
The new surface width.
int32_t action
Action signalled by this event.
Surface has been resized.
#define UBUNTU_APPLICATION_UI_INPUT_EVENT_MAX_POINTER_COUNT
size_t pointer_count
Number of pointers reported in this event.
float size
Size of the pointer/touch.
nsecs_t event_time
Timestamp that marks when this event happened.
int32_t value
The new value of that surface attribute.
SurfaceAttributeType attribute
The surface attribute that has changed.
nsecs_t down_time
Timestamp that marks the down event.
Event originates from a keyboard.
int32_t meta_state
State of the meta modifiers (ALT, CTRL, SHIFT).
float x_offset
Movement in x direction since down event.
float touch_major
Touch major coordinate.
OrientationEvent orientation
int32_t flags
Flags associated with this event.
float raw_y
Processed and raw y coordinates.
int32_t source_id
Source that this event originated from.
int32_t height
The new surface height.
int32_t flags
Flags associated with this event.
float x_precision
Sampling precision in x direction.
int32_t device_id
Device that this event originated from.
float raw_x
Processed and raw x coordinates.
A surface attribute has changed its value.
int32_t meta_state
State of the meta modifiers (ALT, CTRL, SHIFT).
int32_t action
Action signalled by this event.
The device orientation changed.
int32_t button_state
State of buttons of the device.
int32_t source_id
Source that this event originated from.
UApplicationUiWindowOrientation
int32_t device_id
Device that this event originated from.
UApplicationUiWindowOrientation direction
The new surface orientation.
int32_t edge_flags
Set for touches intersecting a touchscreen's edges, requires HW support.
int id
Unique id of the pointer.
float pressure
Pressure of the touch.
float orientation
Orientation.
float touch_minor
Touch minor coordinate.
Event originates from something moving, e.g., a wheel, a mouse, a finger on a touchpad.
float y_precision
Sampling precision in y direction.
float y_offset
Movement in y direction since down event.