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/version.h>
23#include <miral/toolkit_event.h>
25#include <mir_toolkit/event.h>
36namespace mir {
typedef std::unique_ptr<MirEvent,
void(*)(MirEvent*)>
EventUPtr; }
42
43
44
45
46
47
48
49
50
57 void store(
const MirInputEvent *mirInputEvent, ulong qtTimestamp);
72 MirTouchTooltype tooltype,
float x_axis_value,
float y_axis_value,
73 float pressure_value,
float touch_major_value,
float touch_minor_value,
float size_value);
77 std::vector<uint8_t>
const& cookie, MirKeyboardAction action, xkb_keysym_t keysym,
88 float x_axis_value,
float y_axis_value,
89 float hscroll_value,
float vscroll_value,
90 float relative_x_value,
float relative_y_value);
95
96 void store(
const MirInputEvent *mirInputEvent, ulong qtTimestamp);
100
101
102
103
104
105
106
107
108
109
110 std::vector<
EventInfo> event_info_vector;
111 size_t next_index{0};
112 size_t event_info_count{0};
Definition: event_builder.h:55
float relative_x
Definition: event_builder.h:62
void store(const MirInputEvent *mirInputEvent, ulong qtTimestamp)
float relative_y
Definition: event_builder.h:63
ulong timestamp
Definition: event_builder.h:59
std::vector< uint8_t > cookie
Definition: event_builder.h:61
MirInputDeviceId device_id
Definition: event_builder.h:60
Definition: event_builder.h:52
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
#define MIR_VERSION_NUMBER(major, minor, micro)
MIR_VERSION_NUMBER.
Definition: mir_version_number.h:34
std::unique_ptr< MirEvent, void(*)(MirEvent *)> EventUPtr
Definition: event_builder.h:36
Definition: compositor.h:21
#define MIRAL_VERSION
MIRAL_VERSION.
Definition: version.h:62