libtwin: Add touch support

In a similar fashion as the Linux mouse and joystick, support absolute
pointing devices using /dev/input/eventX. Currently it only handles
ABS_X, ABS_Y, and BTN_TOUCH events.

The library interface will open the specified device or, if unspecified,
find the first device in /dev/input that supports absolute and touch
events.

Signed-off-by: Tyler Hall <tylerwhall@gmail.com>
Signed-off-by: Geoff Levand <geoff@infradead.org>
5 files changed