Store the abs value after handling mt events
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 15 Aug 2013 01:10:17 +0000 (11:10 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Sun, 25 Aug 2013 23:52:33 +0000 (09:52 +1000)
commitedc31cf12ef9f99e22aacdc93f12dc1511cd6ad0
treebbdc20653d7603084bb35207b12869ae6e2fdb27
parentf29e4118fcbc58ad79561e64f7ede15f59224240
Store the abs value after handling mt events

This way any ABS_MT_ event value that comes in will also be stored in abs_info.
That always corresponds to "current slot", so if a user calls
libevdev_set_event_value() or libevdev_get_event_value() they're actually
modifying the current slot value.

When the current slot changes, sync the state back into the absinfo values.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
libevdev/libevdev.c
libevdev/libevdev.h
test/test-libevdev-events.c