Skip to content

Commit b191f14

Browse files
authored
axis events (#62)
* input.h: add the wpe_input_axis_event_type_motion_smooth axis event type. * input.h: add wpe_input_axis_2d_event that extnets the base wpe_input_axis_event struct with per-axis delta values. * Rename wpe_input_axis_event_type_2d to wpe_input_axis_event_type_mask_2d.
1 parent d395e44 commit b191f14

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

include/wpe/input.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ struct wpe_input_pointer_event {
9292
enum wpe_input_axis_event_type {
9393
wpe_input_axis_event_type_null,
9494
wpe_input_axis_event_type_motion,
95+
wpe_input_axis_event_type_motion_smooth,
96+
97+
wpe_input_axis_event_type_mask_2d = 1 << 16,
9598
};
9699

97100
struct wpe_input_axis_event {
@@ -104,6 +107,13 @@ struct wpe_input_axis_event {
104107
uint32_t modifiers;
105108
};
106109

110+
struct wpe_input_axis_2d_event {
111+
struct wpe_input_axis_event base;
112+
113+
double x_axis;
114+
double y_axis;
115+
};
116+
107117

108118
enum wpe_input_touch_event_type {
109119
wpe_input_touch_event_type_null,

0 commit comments

Comments
 (0)