2
3
4
5
6
7
8
9
10
11
12
13
14
15
17#ifndef MIROIL_EVENT_BUILDER_H
18#define MIROIL_EVENT_BUILDER_H
20#include <mir_toolkit/mir_input_device_types.h>
21#include <miral/toolkit_event.h>
31namespace mir {
typedef std::unique_ptr<MirEvent,
void(*)(MirEvent*)>
EventUPtr; }
37
38
39
40
41
42
43
44
45
52 void store(
const MirInputEvent *mirInputEvent, ulong qtTimestamp);
67 MirTouchTooltype tooltype,
float x_axis_value,
float y_axis_value,
68 float pressure_value,
float touch_major_value,
float touch_minor_value,
float size_value);
72 std::vector<uint8_t>
const& cookie, MirKeyboardAction action, xkb_keysym_t keysym,
83 float x_axis_value,
float y_axis_value,
84 float hscroll_value,
float vscroll_value,
85 float relative_x_value,
float relative_y_value);
90
91 void store(
const MirInputEvent *mirInputEvent, ulong qtTimestamp);
95
96
97
98
99
100
101
102
103
104
105 std::vector<EventInfo> event_info_vector;
106 size_t next_index{0};
107 size_t event_info_count{0};
Definition: event_builder.h:50
float relative_x
Definition: event_builder.h:57
void store(const MirInputEvent *mirInputEvent, ulong qtTimestamp)
float relative_y
Definition: event_builder.h:58
ulong timestamp
Definition: event_builder.h:54
std::vector< uint8_t > cookie
Definition: event_builder.h:56
MirInputDeviceId device_id
Definition: event_builder.h:55
Definition: event_builder.h:47
mir::EventUPtr make_key_event(MirInputDeviceId device_id, std::chrono::nanoseconds timestamp, std::vector< uint8_t > const &cookie, MirKeyboardAction action, xkb_keysym_t keysym, int scan_code, MirInputEventModifiers modifiers)
void store(const MirInputEvent *mirInputEvent, ulong qtTimestamp)
mir::EventUPtr make_touch_event(MirInputDeviceId device_id, std::chrono::nanoseconds timestamp, std::vector< uint8_t > const &mac, MirInputEventModifiers modifiers)
EventInfo * find_info(ulong qtTimestamp)
void add_touch(MirEvent &event, MirTouchId touch_id, MirTouchAction action, MirTouchTooltype tooltype, float x_axis_value, float y_axis_value, float pressure_value, float touch_major_value, float touch_minor_value, float size_value)
mir::EventUPtr make_pointer_event(MirInputDeviceId device_id, std::chrono::nanoseconds timestamp, std::vector< uint8_t > const &mac, MirInputEventModifiers modifiers, MirPointerAction action, MirPointerButtons buttons_pressed, float x_axis_value, float y_axis_value, float hscroll_value, float vscroll_value, float relative_x_value, float relative_y_value)
unsigned int MirPointerButtons
Definition: enums.h:209
unsigned int MirInputEventModifiers
Definition: enums.h:77
std::unique_ptr< MirEvent, void(*)(MirEvent *)> EventUPtr
Definition: event_builder.h:31
Definition: compositor.h:21