Wednesday, April 7, 2021

Joysticks Part1

For the first iteration of my Multi Vector control panel, I used USB Zero delay encoders from Amazon along with Wico joysticks.

USB Zero Delay Encoder

    The distributed version of the VMMENU application recognizes the encoders, but only the buttons worked.  Pushing up or down on joystick had no effect.  I submitted a pull request to add complete joystick handling including the Axis which was accepted.  Link below is to compiled version for Raspberry PI that includes latest features:   VMMENU (With Joysticks Controls!)   Just replace the existing version in /usr/local/share/advance/

    The distributed version also only includes support for "SDL Gamecontrollers".  We got lucky that the encoder above was recognized, but the mapping adds labels to the inputs that don't necessarily make sense.  This did not work when I upgraded to Ultimarc Ultrastik coming in part 2.  The updated software should work with any USB joystick supported by Raspberry Pi.

    Useful commands for working with joysticks:

ls /dev/input              (You will see mouse0, js0,js1 etc depending on what you have connected)  

ls /dev/input/by-id  

jstest /dev/input/js0 (Test Joystick0, CTRL^C to exit, Can repeat with jstest /dev/input/js1 etc)

advj (AdvanceMame Joystick utility)

No comments:

Post a Comment

Spot Killer Killer

   USB Relay     USB Extension Cable     Files       When using a DVG with a WG6100 monitor, some games may appear to be missing all or part...