Skip to content

Commit

Permalink
axis events (#62)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
zdobersek authored Feb 12, 2020
1 parent d395e44 commit b191f14
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions include/wpe/input.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ struct wpe_input_pointer_event {
enum wpe_input_axis_event_type {
wpe_input_axis_event_type_null,
wpe_input_axis_event_type_motion,
wpe_input_axis_event_type_motion_smooth,

wpe_input_axis_event_type_mask_2d = 1 << 16,
};

struct wpe_input_axis_event {
Expand All @@ -104,6 +107,13 @@ struct wpe_input_axis_event {
uint32_t modifiers;
};

struct wpe_input_axis_2d_event {
struct wpe_input_axis_event base;

double x_axis;
double y_axis;
};


enum wpe_input_touch_event_type {
wpe_input_touch_event_type_null,
Expand Down

0 comments on commit b191f14

Please sign in to comment.