[Pub.FreeJoy] linux joystick fix

BlitzMax Forums/BlitzMax Module Tweaks/[Pub.FreeJoy] linux joystick fix

Devlin(Posted 2011) [#1]
some of the newer linux distros have a different way of organising the /dev/ folder, and on these distros BlitzMax apps will fail to find any joysticks.
In this situation I had a look at /wherever/BlitzMax/mod/pub.mod/freejoy.mod/freejoy.linux.c (Line ~73) and added another condition that seems to have fixed it - this is SUPREMELY HACKY, and a better fix should be made.
sprintf(fname,"/dev/js%d",n);
sprintf(fname,"/dev/input/js%d",n);