Created 27/12/2019 at 09:47AM

One thing that I first noticed when I managed to get the SpaceMouse Enterprise working with FreeCAD was that I could not map all of the buttons correctly. Some would work okay, but many seemed to be mapped to the same code.

This is confirmed by running the simple example that comes as part of libspnav. Many of the buttons show up with the same button event of 0. It is the same with both the X11 and non-X11 code.

I don't know anything about how the Linux input system works, but it looks like I may have to go digging around if I want to get all of the buttons working.


I found this file by Ján Cíger, which reads raw data from the SpaceMouse using the event interface. I added the USB VID and PID for the SpaceMouse Enterprise and compiled it. Pressing each of the buttons on the SpaceMouse shows a different code.

This should mean that it will be relatively simple to get the extra buttons working with spacenavd and libspnav.