GadgetReboot / Rotary_Optical_USB

Pi Pico USB Mouse/Keyboard for Arcade Trackball/Spinner and LS30 Mechanical Rotary Joysticks
2 stars 1 forks source link

spinner support (encoder) #3

Open gkozlowski-git opened 2 weeks ago

gkozlowski-git commented 2 weeks ago

I built the project. Everything is fine. However, I would like to use it additionally to operate two spinners. Would there be a chance you could post an alternative script with support? Unfortunately, I am not a programmer and it is difficult for me to convert the XY axis to XX.

GadgetReboot commented 2 weeks ago

I'm also not much of a programmer and I need to try to re-learn anything I took from other places and jammed together. I see in the script there is a mouse implemented on axis 2 and then 1 and 3 are left not implemented (I forget why).

Is the goal to just have a single mouse device but just being able to permanently wire up alternate axis controllers on the screw terminals and they all control the same cursor depending which one is used,

or is it to have multiple separate mouse cursors that are their own separate devices (I don't know if that can be done, it would take a lot of research to see)?

gkozlowski-git commented 2 weeks ago

Only one cursor, but three devices (trackball on Mouse2 and two spinners on Mouse1). Two spinners can be used at the same time, just like a rotary joystick.

GadgetReboot commented 2 weeks ago

I attempted to implement all 3 mouse X-Y inputs with some copy/paste and axis number renaming, but I don't currently have a test setup to verify anything so you can try it and see if it works. I made a new folder for the version 1 old code and this new version 2. https://github.com/GadgetReboot/Rotary_Optical_USB/tree/main/Circuit_Python_Script/ver2