Skip to content

SpaceNavigatorHID.current.Rotation.ReadValue() returns 0 0 0 in build version #44

@Georodin

Description

@Georodin

Describe the bug
SpaceNavigatorHID.current.Rotation.ReadValue(); returns in Standalone build only Vector3(0, 0, 0);
When use in GameMode it works fine. Also SpaceNavigatorHID.current.Translation.ReadValue(); still returns all values in all modes
just rotation returns zero values
using the 3Dconnexion wireless version in Unity 2020.3.5f1 using SpaceNavigator-2.0.0-beta.7

To Reproduce
Steps to reproduce the behavior:

  1. create new HDRP project in Unity 2020.3.5f1
  2. copy the SpaceNavigator-2.0.0-beta.7 folder to the packages folder
  3. accept the prompt to change to the New Input System
  4. after restart add a script to the camera to vizualize the movement of SpaceNavigatorHID.current.Rotation.ReadValue();
  5. Debug.Log both SpaceNavigatorHID.current.Rotation.ReadValue(); and SpaceNavigatorHID.current.Translation.ReadValue();
  6. try it in GameMode, it does work normal
  7. build the project
  8. in the builded project only SpaceNavigatorHID.current.Translation.ReadValue(); returns values while SpaceNavigatorHID.current.Rotation.ReadValue(); only returns Vector3(0, 0, 0); constantly

Expected behavior
SpaceNavigatorHID.current.Rotation.ReadValue(); should return values other than zero in builded versions

Details (please complete the following information):

  • Issue occurred while [in the editor viewports, in play mode]
  • Device type: Spacemouse 3dconnexion
  • Connection: wireless
  • OS: Windows
  • SpaceNavigator-2.0.0-beta.7

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions