smartavionics / RawMouse

Cura Plugin that lets you use a HID mouse to pan/rotate/zoom the view
94 stars 7 forks source link

Spacemouse Wireless tilt inverted #5

Open pietroos opened 4 years ago

pietroos commented 4 years ago

Hi, it is possible to invert the tilt on the Spacemouse? I've tried by the 3dconnexion software but it doesn't care, it is possible to do somehow by the config of the plugin?

smartavionics commented 4 years ago

Hi, yes, the directions (and sensitivity) of the mouse axes can be changed by editing the config file. To change the direction, change the sign of the axis's scale value.

eried commented 4 years ago

This plug-in is awesome! This is the best config I could get:

    "spacemouse" : {
      "axes" : [
        { "offset": 0.0, "scale": 0.05, "threshold": 0.005, "target": "movx" },
        { "offset": 0.0, "scale": 100.0, "threshold": 1.0, "target": "zoom" },
        { "offset": 0.0, "scale": 0.05, "threshold": 0.005, "target": "movy" },
        { "offset": 0.0, "scale": 0.025 , "threshold": 0.005, "target": "rotpitch" },
        { "offset": 0.0, "scale": 0.025, "threshold": 0.005, "target": "rotroll" },
        { "offset": 0.0, "scale": -0.025, "threshold": 0.005, "target": "rotyaw" }
      ],

There is some "jitter" specially with the zoom, but It is ok. I confirm that it works with spacemouse service running on Windows 10 x64. I just disabled the buttons from 3DConnection. I did not noticed any improvement with "FastView".

pietroos commented 4 years ago

@smartavionics Thanks for the help, now it works well. I would just like to report that the framerate while using the mouse goes down in certain directions, and if I use the tilt it zooms automatically

smartavionics commented 4 years ago

if I use the tilt it zooms automatically

This I do not understand, why should tilting change the zoom?

Nobody has reported this before.

eried commented 4 years ago

I think is the problem I was saying. The tilt also zooms in a stepped ugly way but I didn't tried without the driver running yet