diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2016-01-18 15:58:17 +1000 |
---|---|---|
committer | Jonas Ådahl <jadahl@gmail.com> | 2016-01-19 10:53:16 +0800 |
commit | 89b6a4931ef40e4524fec9bfc05627be9a974758 (patch) | |
tree | d61650122be0c665badc772ea044edfdbd4a48cb /ivi-shell | |
parent | 60fb1c4ce8aa7b0bfd804e9a7a6631a528aaeb50 (diff) |
Add a weston_pointer_axis_event
Use an event struct to pass axis events around. This helps dealing with the
upcoming axis discrete changes.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jonas Ådahl <jadahl@gmail.com>
Diffstat (limited to 'ivi-shell')
-rw-r--r-- | ivi-shell/hmi-controller.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ivi-shell/hmi-controller.c b/ivi-shell/hmi-controller.c index 77426bc8..c21b9e0e 100644 --- a/ivi-shell/hmi-controller.c +++ b/ivi-shell/hmi-controller.c @@ -1511,9 +1511,10 @@ pointer_noop_grab_focus(struct weston_pointer_grab *grab) static void pointer_default_grab_axis(struct weston_pointer_grab *grab, - uint32_t time, uint32_t axis, wl_fixed_t value) + uint32_t time, + struct weston_pointer_axis_event *event) { - weston_pointer_send_axis(grab->pointer, time, axis, value); + weston_pointer_send_axis(grab->pointer, time, event); } static void |