I changed the code, so it works in OnShape and similar CAD applications. I used AI to help me, since I do not code usually.
All the Stl and Step files are replaced. I optimized it for 3D printing. The mouse can be assembled directly after printing, no support material needed. See Print_All.stl for optimal orientation. The Base_bottom can be filled after printing no pausing needed. I used plaster to weighten the Base. Steel would be better, lead would be best.
Ones connected the knob can be used to pan (aka moveing the object/camera in all directions on the view plane) by tilting the it in the appropriate direction. By punshing the knob down (lightly), the orbiting mode gets activated (aka rotating the object/camera around the central point). The buttons are corrently just set to tip a "n" or "f", but can be changed to every chaine of keyboard or mouse input. Reference
TinyUSB_Mouse_and_Keyboard.h
BLE52 Mouse and Keyboard.h
OneButton.h
Tlv493d.h
SimpleKalmanFilter.h