<div>Hi,,<br></div><div><br></div><div>Thanks!  That works perfectly!<br></div><div><br></div><div>Well, to be fair, there is no joystick so I'm not testing that part.  I'm just testing "it builds and runs over X11."<br></div><div><br></div><div>cheers<br></div><div><br></div><div>bruce</div><div ><br></div><div class="ik_mail_quote answerContentMessage" ><div>On 2022-06-14T14:09:12.000+02:00, Tobias Pape <Das.Linux@gmx.de> wrote:</div><blockquote class="ws-ng-quote"><pre style="white-space: normal;">Hi Bruce<br/><br/><blockquote class="ws-ng-quote">  On 14. Jun 2022, at 12:57, Bruce O'Neel <<a target="_blank"  class="defaultMailLink" href="mailto:bruce.oneel@pckswarms.ch">bruce.oneel@pckswarms.ch</a>> wrote:<br/> <br/> Hi,<br/> <br/> Thanks, you did very good due diligence but ubuntu 20.04 is way way too young :-)<br/> <br/> RHEL 7 has a kernel version of 3.10, so just before Ubuntu 14.04.  Yes, that old. <br/></blockquote> <br/>_now_ I get what you meant. sorry.<br/><br/>can you have a look at <a target="_blank"  class="defaultMailLink" href="https://github.com/OpenSmalltalk/opensmalltalk-vm/tree/krono/fix-for-bruce-joystick">https://github.com/OpenSmalltalk/opensmalltalk-vm/tree/krono/fix-for-bruce-joystick</a> ?<br/><br/>Best regards<br/>    -Tobias<br/><br/><br/><blockquote class="ws-ng-quote">  <br/> RHEL 8 is fine with a kernel version of 4.18.<br/> <br/> So any sane person won't run into this problem which is why I do not think we should make any effort to work around it.  It is only us insane people who insist on upgrading only when it becomes a dire necessity will ever trip over this.  Or insist in working for giant companies which is basically the same issue.<br/> <br/> Thanks, and don't stress.<br/> <br/> cheers<br/> <br/> bruce<br/> <br/> On 2022-06-14T11:47:54.000+02:00, Tobias Pape <<a target="_blank"  class="defaultMailLink" href="mailto:Das.Linux@gmx.de">Das.Linux@gmx.de</a>> wrote:<br/> Hi Bruce,<br/> <br/> <br/> On 13. Jun 2022, at 17:17, Bruce O'Neel <<a target="_blank"  class="defaultMailLink" href="mailto:bruce.oneel@pckswarms.ch">bruce.oneel@pckswarms.ch</a>> wrote:<br/> <br/> Hi,<br/> <br/> 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/> <br/> 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/> <br/> I am actually quite puzzled.<br/> I've checked on ubuntu 20.04 and 22.04, and there the include file and the defined constants exist.<br/> (With the linux-libc-dev package installed)<br/> <br/> On RHEL, you just need the kernel-headers package, and there you are :)<br/> <br/> Best regards<br/> -Tobias<br/> <br/> <br/> cheers<br/> <br/> bruce<br/> <br/> <br/> <br/> git diff ../../../../platforms/unix/plugins/JoystickTabletPlugin/sqUnixJoystickTablet.c<br/> diff --git a/platforms/unix/plugins/JoystickTabletPlugin/sqUnixJoystickTablet.c b/platforms/unix/plugins/JoystickTabletPlugin/sqUnixJoys<br/> index b2e69c7..a3baf8d 100644<br/> --- a/platforms/unix/plugins/JoystickTabletPlugin/sqUnixJoystickTablet.c<br/> +++ b/platforms/unix/plugins/JoystickTabletPlugin/sqUnixJoystickTablet.c<br/> @@ -26,7 +26,7 @@<br/> */<br/> <br/> /* Author: <a target="_blank"  class="defaultMailLink" href="mailto:Ian.Piumarta@INRIA.Fr">Ian.Piumarta@INRIA.Fr</a><br/> -/* Author: <a target="_blank"  class="defaultMailLink" href="mailto:davidf@afeka.ac.il">davidf@afeka.ac.il</a><br/> + Author: <a target="_blank"  class="defaultMailLink" href="mailto:davidf@afeka.ac.il">davidf@afeka.ac.il</a><br/> */<br/> <br/> #include <assert.h><br/> @@ -42,7 +42,7 @@<br/> #include <dirent.h><br/> #include <errno.h><br/> #include <poll.h><br/> -#include <linux/input-event-codes.h><br/> +// #include <linux/input-event-codes.h><br/> #include <linux/input.h><br/> #include "JoystickTabletPlugin.h"<br/> <br/> @@ -161,10 +161,10 @@ detectButtons(joystick_state_t* pj)<br/> else {<br/> // it's a modern gamepad device<br/> <br/> - pj->button_index[0] = BTN_NORTH;<br/> +/* pj->button_index[0] = BTN_NORTH;<br/><blockquote class="ws-ng-quote">  pj->button_index[1] = BTN_EAST;<br/> pj->button_index[2] = BTN_SOUTH;<br/></blockquote>  - pj->button_index[3] = BTN_WEST;<br/> + pj->button_index[3] = BTN_WEST; */<br/> }<br/> <br/> return 1;<br/> <br/></pre></blockquote></div>