
Engineer Shinsaku Hiura (@shiura) recently released the Space Mushroom mouse which has 6 degrees of freedom. It uses three analog joystick sensors for game controllers.
Shinsaku has created an Instructables page, detailing how it’s made along with code and 3D models to download to free.
https://www.youtube.com/watch?v=Vs6Xte4gOxk
https://www.thingiverse.com/thing:5739462
https://www.instructables.com/Space-Mushroom-Full-6-DOFs-Controller-for-CAD-Appl/