Convert notify_axis to wl_fixed_t
authorDaniel Stone <daniel@fooishbar.org>
Wed, 30 May 2012 15:31:57 +0000 (16:31 +0100)
committerJonas Ådahl <jadahl@gmail.com>
Sun, 10 Nov 2013 16:51:29 +0000 (17:51 +0100)
In preparation for the rest of the axis code changing.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
src/evdev.c

index 0a5ec91..a9c132c 100644 (file)
@@ -168,12 +168,14 @@ evdev_process_relative(struct evdev_input_device *device,
        case REL_WHEEL:
                notify_axis(&device->master->base.seat,
                              time,
-                             WL_POINTER_AXIS_VERTICAL_SCROLL, e->value);
+                             WL_POINTER_AXIS_VERTICAL_SCROLL,
+                             wl_fixed_from_int(e->value));
                break;
        case REL_HWHEEL:
                notify_axis(&device->master->base.seat,
                              time,
-                             WL_POINTER_AXIS_HORIZONTAL_SCROLL, e->value);
+                             WL_POINTER_AXIS_HORIZONTAL_SCROLL,
+                             wl_fixed_from_int(e->value));
                break;
        }
 }