Strange offset HID, SpaceMouse Wireless

Post questions, comments and feedback to our 3Dconnexion Windows Development Team.

Moderator: Moderators

Post Reply
BYFo_Max
Posts: 5
Joined: Tue Nov 30, 2021 8:05 am
Contact:

Strange offset HID, SpaceMouse Wireless

Post by BYFo_Max »

Hi I'm Max,

my current occupation is as a Unity 3D Developer in Berlin. So I'm tasked with the navigation via a SpaceMouse in a digital factory showroom.
And were running into some troubles. First of all big thanks to @PatHightree who develops the Unity plugin, but when you build the project the whole rotation axis is not working sadly.
So I wrote my own input parser using Unitys new Input System. Works fine but sadly the first value of the VEC2 StickControl gets a strange offset after roughly 1-3seconds without usage. The offset is roughly about 0.1942825 and I think it has even more tailing digits because a simple if(value==0.1942825) did not the trick...
Here the input debugger window with the faulty offset after 1-3seconds of idle
Image
And here the "normal" output without the strange offset
Image

and also strange: when I start the scene and don't input any movement the offset also does not appear
only after I touch the Mouse and give some movement input
Do you have any adivice for me?

Best regards Max

Unity 2020.3.5f1, Input System 1.0.4
generic SpaceMouse Driver from automated Windows pull
Post Reply