diff --git a/Runtime/SpaceNavigatorHID.cs b/Runtime/SpaceNavigatorHID.cs index 88a0e94..019c86e 100644 --- a/Runtime/SpaceNavigatorHID.cs +++ b/Runtime/SpaceNavigatorHID.cs @@ -33,13 +33,16 @@ public struct ReportFormat3 [InputControl(name = "translation/x", offset = 0, format = "SHRT", parameters = "scale=true, scaleFactor=10")] [InputControl(name = "translation/y", offset = 4, format = "SHRT", parameters = "scale=true, scaleFactor=-10")] [InputControl(name = "translation/z", offset = 2, format = "SHRT", parameters = "scale=true, scaleFactor=-10")] + + [InputControl(name = "rotation", format = "VC3S", layout = "Vector3", displayName = "Rotation")] + [InputControl(name = "rotation/x", offset = 7, format = "SHRT", parameters = "scale=true, scaleFactor=-10")] + [InputControl(name = "rotation/y", offset = 9, format = "SHRT", parameters = "scale=true, scaleFactor=10")] + [InputControl(name = "rotation/z", offset = 11, format = "SHRT", parameters = "scale=true, scaleFactor=10")] + public ReportFormat1 report1; // 2nd report - [InputControl(name = "rotation", format = "VC3S", layout = "Vector3", displayName = "Rotation")] - [InputControl(name = "rotation/x", offset = 0, format = "SHRT", parameters = "scale=true, scaleFactor=-80")] - [InputControl(name = "rotation/y", offset = 4, format = "SHRT", parameters = "scale=true, scaleFactor=80")] - [InputControl(name = "rotation/z", offset = 2, format = "SHRT", parameters = "scale=true, scaleFactor=80")] + public ReportFormat2 report2; // 3rd report