19 #ifndef MIR_COMMON_MOTION_EVENT_H_ 20 #define MIR_COMMON_MOTION_EVENT_H_ 23 #define MIR_INPUT_EVENT_MAX_POINTER_COUNT 16 56 int32_t device_id()
const;
57 void set_device_id(int32_t
id);
59 int32_t source_id()
const;
60 void set_source_id(int32_t
id);
68 std::chrono::nanoseconds event_time()
const;
69 void set_event_time(std::chrono::nanoseconds
const& event_time);
74 size_t pointer_count()
const;
75 void set_pointer_count(
size_t count);
77 int id(
size_t index)
const;
78 void set_id(
size_t index,
int id);
80 float x(
size_t index)
const;
81 void set_x(
size_t index,
float x);
83 float y(
size_t index)
const;
84 void set_y(
size_t index,
float y);
86 float dx(
size_t index)
const;
87 void set_dx(
size_t index,
float dx);
89 float dy(
size_t index)
const;
90 void set_dy(
size_t index,
float dy);
93 void set_touch_major(
size_t index,
float major);
96 void set_touch_minor(
size_t index,
float minor);
98 float size(
size_t index)
const;
99 void set_size(
size_t index,
float size);
102 void set_pressure(
size_t index,
float pressure);
105 void set_orientation(
size_t index,
float orientation);
107 float vscroll(
size_t index)
const;
108 void set_vscroll(
size_t index,
float vscroll);
110 float hscroll(
size_t index)
const;
111 void set_hscroll(
size_t index,
float hscroll);
116 int action(
size_t index)
const;
117 void set_action(
size_t index,
int action);
126 int32_t device_id_{-1};
127 int32_t source_id_{-1};
132 std::chrono::nanoseconds event_time_{0};
135 size_t pointer_count_{0};
float hscroll
Definition: motion_event.h:44
#define MIR_INPUT_EVENT_MAX_POINTER_COUNT
Definition: motion_event.h:23
float touch_major
Definition: motion_event.h:38
Definition: motion_event.h:143
float touch_minor
Definition: motion_event.h:39
float size
Definition: motion_event.h:40
float pressure
Definition: motion_event.h:41
std::array< uint8_t, default_blob_size > Blob
Definition: blob.h:29
Definition: motion_event.h:31
float dy
Definition: motion_event.h:37
float x
Definition: motion_event.h:34
float orientation
Definition: motion_event.h:42
MirTouchTooltype tool_type
Definition: motion_event.h:45
float y
Definition: motion_event.h:35
int id
Definition: motion_event.h:33
struct MirMotionEvent MirMotionEvent
Definition: event.h:28
int action
Definition: motion_event.h:49
Definition: motion_event.h:52
float vscroll
Definition: motion_event.h:43
Definition: motion_event.h:147
float dx
Definition: motion_event.h:36