17#ifndef MIROIL_EVENT_BUILDER_H
18#define MIROIL_EVENT_BUILDER_H
52 void store(
const MirInputEvent *mirInputEvent, ulong qtTimestamp);
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);
91 void store(
const MirInputEvent *mirInputEvent, ulong qtTimestamp);
105 std::vector<EventInfo> event_info_vector;
106 size_t next_index{0};
107 size_t event_info_count{0};
struct MirEvent MirEvent
Definition append_event_filter.h:23
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)
MirPointerAction
Possible pointer actions.
Definition enums.h:151
unsigned int MirPointerButtons
Definition enums.h:209
MirKeyboardAction
Possible actions for changing key state.
Definition enums.h:82
MirTouchTooltype
Identifiers for per-touch tool types.
Definition enums.h:136
MirTouchAction
Possible per touch actions for state changing.
Definition enums.h:99
unsigned int MirInputEventModifiers
Definition enums.h:77
Definition splash_session.h:22
std::unique_ptr< MirEvent, void(*)(MirEvent *)> EventUPtr
Definition event_builder.h:31
Definition compositor.h:21