Ubuntu Platform API  2.3.0
A library helping with tight integration into the Ubuntu platform
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
MotionEvent Struct Reference

#include <event.h>

+ Collaboration diagram for MotionEvent:

Data Fields

WindowEventType type
 
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...
 
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...
 

Detailed Description

Information describing an event originating from a "moving" device, e.g., a mouse, a mouse-wheel, a finger on a touchpad.

Definition at line 163 of file event.h.

Field Documentation

int32_t MotionEvent::action

Action signalled by this event.

Definition at line 169 of file event.h.

int32_t MotionEvent::button_state

State of buttons of the device.

Definition at line 174 of file event.h.

int32_t MotionEvent::device_id

Device that this event originated from.

Definition at line 167 of file event.h.

nsecs_t MotionEvent::down_time

Timestamp that marks the down event.

Definition at line 179 of file event.h.

int32_t MotionEvent::edge_flags

Set for touches intersecting a touchscreen's edges, requires HW support.

Definition at line 173 of file event.h.

nsecs_t MotionEvent::event_time

Timestamp that marks when this event happened.

Definition at line 180 of file event.h.

int32_t MotionEvent::flags

Flags associated with this event.

Definition at line 170 of file event.h.

int32_t MotionEvent::meta_state

State of the meta modifiers (ALT, CTRL, SHIFT).

Definition at line 171 of file event.h.

Pointer information, valid from [0,pointer_count).

Definition at line 182 of file event.h.

size_t MotionEvent::pointer_count

Number of pointers reported in this event.

Definition at line 181 of file event.h.

int32_t MotionEvent::source_id

Source that this event originated from.

Definition at line 168 of file event.h.

WindowEventType MotionEvent::type

Definition at line 165 of file event.h.

float MotionEvent::x_offset

Movement in x direction since down event.

Definition at line 175 of file event.h.

float MotionEvent::x_precision

Sampling precision in x direction.

Definition at line 177 of file event.h.

float MotionEvent::y_offset

Movement in y direction since down event.

Definition at line 176 of file event.h.

float MotionEvent::y_precision

Sampling precision in y direction.

Definition at line 178 of file event.h.


The documentation for this struct was generated from the following file: