Skip to content

Too much drift without Very high deadzone settings, Linux, Wayland (Workaround inlcuded) #87

@Hunanbean-Collective

Description

@Hunanbean-Collective

Describe the bug
there is significant idle drift unless Deadzones are set higher than a user would like it to be for normal usage.

To Reproduce
Steps to reproduce the behavior:
Move the mouse in Wayland Compositor (Linux)
release the mouse
notice the mouse drifts

Expected behavior
no drifting on release

Details (please complete the following information):

  • Issue occurred while navigating in the editor viewports
  • Device type: Spacemouse Pro
  • Connection: Wired
  • OS: CachyOS, Wayland, KDE, Nvidia
  • SpaceNavigator Driver version 2.1.0 from source, 2.1.0 rc from Asset Store (other versions not tested)

Additional context
as a workaround, you can edit ViewportController.cs:

private static void ReadDeviceData(OperationMode mode, out Vector3 translation, out Vector3 rotation)
{
    // ... existing logic to get raw values ...
    
    // Add this to the function:
            if (translation.sqrMagnitude < 0.005f && rotation.sqrMagnitude < 0.05f)
            {
                translation = Vector3.zero;
                rotation = Vector3.zero;
                return;
            }
    
    // ... existing smoothing/sensitivity logic ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions