CadQuery / CQ-editor

CadQuery GUI editor based on PyQT
Apache License 2.0
723 stars 111 forks source link

3DConnexion 3D Mouse Support #412

Open Spectre5 opened 8 months ago

Spectre5 commented 8 months ago

Is there any chance of getting support for 3D mice in CQ-Editor? I have a 3D mouse from 3DConnexion that works great in FreeCAD via spacenavd. It would be great to get it supported in CQ-Editor too.

jmwright commented 8 months ago

@Spectre5 Is this the correct link for the API?

PRs are always welcome. I don't know that the core team will have bandwidth or the interest to implement this anytime soon. I have a 3D mouse and have used it off and on, but there are just too many things that require focus in CadQuery-land. You can leave this issue open and other people can register their interest, and hopefully someone will pick it up eventually.

Spectre5 commented 8 months ago

Totally understandable. I'd probably be somewhat out of my wheelhouse trying to implement that functionality but if I find some time I will look into it. And yes, spacenavd uses libspnav, but I think the editor could use a higher level interface - the output of spacenavd itself is usually used, I believe.

justbuchanan commented 8 months ago

I may take a look at implementing this since I have SpaceNavigator mouse as well and would be interested in using it with cq-editor.

A quick search shows two python packages for interfacing with spacenav:

justbuchanan commented 8 months ago

This one looks promising: https://github.com/JakubAndrysek/pyspacemouse. Works on Windows, Linux, and Mac.

justbuchanan commented 8 months ago

I sent https://github.com/CadQuery/CQ-editor/pull/413 as an initial proof-of-concept using pyspacemouse. It needs a fair amount of work, but I got some of the basics working.