<div>Hi,<br></div><div><br></div><div>I am sending this just to save the next person who stumbles over the new Joystick stuff not building on old enough linuxes some time.  In my case old enough is RedHat 7.<br></div><div><br></div><div>We should not add complexity to make this automagic.  But when someone says "does not build on Linux kernels 3.x or so", I know, ancient, we can say "here, this patch."<br></div><div><br></div><div>cheers<br></div><div><br></div><div>bruce</div><div><br></div><div><br></div><div><br></div><div>git diff ../../../../platforms/unix/plugins/JoystickTabletPlugin/sqUnixJoystickTablet.c<br></div><div>diff --git a/platforms/unix/plugins/JoystickTabletPlugin/sqUnixJoystickTablet.c b/platforms/unix/plugins/JoystickTabletPlugin/sqUnixJoys<br></div><div>index b2e69c7..a3baf8d 100644<br></div><div>--- a/platforms/unix/plugins/JoystickTabletPlugin/sqUnixJoystickTablet.c<br></div><div>+++ b/platforms/unix/plugins/JoystickTabletPlugin/sqUnixJoystickTablet.c<br></div><div>@@ -26,7 +26,7 @@<br></div><div>  */<br></div><div><br></div><div>/* Author: <a href="mailto:Ian.Piumarta@INRIA.Fr">Ian.Piumarta@INRIA.Fr</a><br></div><div>-/* Author: <a href="mailto:davidf@afeka.ac.il">davidf@afeka.ac.il</a><br></div><div>+ Author: <a href="mailto:davidf@afeka.ac.il">davidf@afeka.ac.il</a><br></div><div>  */<br></div><div><br></div><div>#include <assert.h><br></div><div>@@ -42,7 +42,7 @@<br></div><div>#include <dirent.h><br></div><div>#include <errno.h><br></div><div>#include <poll.h><br></div><div>-#include <linux/input-event-codes.h><br></div><div>+// #include <linux/input-event-codes.h><br></div><div>#include <linux/input.h><br></div><div>#include "JoystickTabletPlugin.h"<br></div><div><br></div><div>@@ -161,10 +161,10 @@ detectButtons(joystick_state_t* pj)<br></div><div>        else {<br></div><div>                // it's a modern gamepad device<br></div><div><br></div><div>-               pj->button_index[0] = BTN_NORTH;<br></div><div>+/*             pj->button_index[0] = BTN_NORTH;<br></div><div>                pj->button_index[1] = BTN_EAST;<br></div><div>                pj->button_index[2] = BTN_SOUTH;<br></div><div>-               pj->button_index[3] = BTN_WEST;<br></div><div>+               pj->button_index[3] = BTN_WEST; */<br></div><div>        }<br></div><div><br></div><div>        return 1;<br></div><div><br></div><div ><br></div>