Make buttons unsigned, there are no negative button numbers
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 5 Dec 2013 07:04:09 +0000 (17:04 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Fri, 6 Dec 2013 03:52:07 +0000 (13:52 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/libinput.h

index e9be9a4..d3eb2ea 100644 (file)
@@ -148,7 +148,7 @@ struct libinput_event_pointer_motion_absolute {
 struct libinput_event_pointer_button {
        struct libinput_event base;
        uint32_t time;
-       int32_t button;
+       uint32_t button;
        enum libinput_pointer_button_state state;
 };