Took me a second to work out that the 272 was actually BTN_LEFT, as keys
and buttons share a namespace in evdev.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
#include <poll.h>
#include <wayland-client.h>
#include <GLES2/gl2.h> /* needed for GLfloat */
+#include <linux/input.h>
struct display {
struct wl_display *display;
struct input *input = data;
uint32_t bit;
- bit = 1 << (button - 272);
+ bit = 1 << (button - BTN_LEFT);
if (state)
input->button_mask |= bit;
else