Use floating point numbers instead of fixed point numbers
authorJonas Ådahl <jadahl@gmail.com>
Mon, 2 Jun 2014 21:09:27 +0000 (23:09 +0200)
committerJonas Ådahl <jadahl@gmail.com>
Mon, 9 Jun 2014 18:46:53 +0000 (20:46 +0200)
commitf3084e2c0dbc89238112ef0ed4ffd4ebb059ece6
tree2e4883a12e6c591350e9845371d90db05f12cf81
parent14a1d189ff5261066d9797abc95c74e9f2491ba8
Use floating point numbers instead of fixed point numbers

Fixed point numbers can easily overflow, and double to fixed point
conversion is lossy. Use floating point (double) where fixed point
numbers where previously used and remove the li_fixed_t type.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev-mt-touchpad.c
src/evdev.c
src/evdev.h
src/libinput-private.h
src/libinput-util.h
src/libinput.c
src/libinput.h
test/pointer.c
test/touch.c
tools/event-debug.c