Set the XI type for the device

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Fix loop condition

Use the passed-in value, not the global constant.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Replace hardcoded button number with one we can calculate

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Init the right number of buttons for pointer devices

This only makes room for the highest button number present on the device, it
doesn't cater for devices with 'holes'. i.e. if a device has only BTN_BACK, it
will initialize buttons for all below too.

Which is also evdev's current behavior.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Update the README

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Allow re-enabling of the sendevents configuration

When re-enabling the device, the mode is 0.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Add an explanatory comment for the disabled ptraccel

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Hook up the libinput log handler

Let the server filter based on the verbosity levels in the server, so map
ERROR to -1 (always), INFO to 3 (default verbosity) and DEBUG to 10.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>