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

Signed-off-by: Tyler Hall <>
Signed-off-by: Geoff Levand <>
5 files changed