Replace output screen size callback with transform helpers
authorJonas Ådahl <jadahl@gmail.com>
Sat, 25 Jan 2014 10:53:53 +0000 (11:53 +0100)
committerJonas Ådahl <jadahl@gmail.com>
Mon, 3 Feb 2014 22:39:58 +0000 (23:39 +0100)
commit1f1304041ca5cd5c99cdfc463a6b7c5105a63bf1
tree01788c5433759a5295e009c5828d3526dc49583b
parentb5f06f83299c51b015e4f047a080198607539f68
Replace output screen size callback with transform helpers

Instead of automatically transforming absolute coordinates of touch and
pointer events to screen coordinates, the user now uses the corresponding
transform helper function. This means the coordinates returned by
libinput_event_pointer_get_absolute_x(),
libinput_event_pointer_get_absolute_y(), libinput_touch_get_x() and
libinput_touch_get_y() has changed from being in output screen coordinate
space to being in device specific coordinate space.

For example, where one before would call libinput_event_touch_get_x(event),
one now calls libinput_event_touch_get_x_transformed(event, output_width).

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
src/evdev.c
src/evdev.h
src/libinput.c
src/libinput.h
test/litest.c
tools/event-debug.c