-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SpaceNavigatorHID.current.Rotation.ReadValue() returns 0 0 0 in build version #44
Comments
void Start()
{
Type wireless = typeof(SpaceNavigatorWirelessHID);
System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(wireless.TypeHandle);
Type wired = typeof(SpaceNavigatorHID);
System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(wired.TypeHandle);
Debug.Log("Called static");
} I added this manual static constructor call to my Camera script and at least the SMW works now in build mode |
I am having the same issue too |
Hi Georodin, I am pretty new to programming and tried to implement your solution for making the Wireless Spacemouse work in BuildMode. However I am struggling with the script, the "Type" wireless is screaming at me.. |
Hihi nilmother,
these both at the top of you script and the only thing im doing is finding the constructor of the if it's something else, then let me know |
Dear Georodin, |
Describe the bug
SpaceNavigatorHID.current.Rotation.ReadValue();
returns in Standalone build onlyVector3(0, 0, 0);
When use in GameMode it works fine. Also
SpaceNavigatorHID.current.Translation.ReadValue();
still returns all values in all modesjust 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:
SpaceNavigatorHID.current.Rotation.ReadValue();
SpaceNavigatorHID.current.Rotation.ReadValue();
andSpaceNavigatorHID.current.Translation.ReadValue();
SpaceNavigatorHID.current.Translation.ReadValue();
returns values whileSpaceNavigatorHID.current.Rotation.ReadValue();
only returnsVector3(0, 0, 0);
constantlyExpected behavior
SpaceNavigatorHID.current.Rotation.ReadValue();
should return values other than zero in builded versionsDetails (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: