diff --git a/JoystickVisualizer/Assets/Devices/Logitech 3D Pro/Logitech Extreme 3D Pro.blend b/JoystickVisualizer/Assets/Devices/Logitech 3D Pro/Logitech Extreme 3D Pro.blend index f045d3f..ef0298b 100644 Binary files a/JoystickVisualizer/Assets/Devices/Logitech 3D Pro/Logitech Extreme 3D Pro.blend and b/JoystickVisualizer/Assets/Devices/Logitech 3D Pro/Logitech Extreme 3D Pro.blend differ diff --git a/JoystickVisualizer/Assets/Devices/Logitech 3D Pro/Logitech Extreme 3D Pro.blend1 b/JoystickVisualizer/Assets/Devices/Logitech 3D Pro/Logitech Extreme 3D Pro.blend1 index 272c50c..ac8ee3d 100644 Binary files a/JoystickVisualizer/Assets/Devices/Logitech 3D Pro/Logitech Extreme 3D Pro.blend1 and b/JoystickVisualizer/Assets/Devices/Logitech 3D Pro/Logitech Extreme 3D Pro.blend1 differ diff --git a/JoystickVisualizer/Assets/Devices/Logitech 3D Pro/Logitech3DPro.cs b/JoystickVisualizer/Assets/Devices/Logitech 3D Pro/Logitech3DPro.cs index b726d86..e936612 100644 --- a/JoystickVisualizer/Assets/Devices/Logitech 3D Pro/Logitech3DPro.cs +++ b/JoystickVisualizer/Assets/Devices/Logitech 3D Pro/Logitech3DPro.cs @@ -6,6 +6,7 @@ public class Logitech3DPro: MonoBehaviour { public const string USB_ID = "046d:c215"; //public const string USB_ID = "044f:0402"; + //public const string USB_ID = "044f:0404"; public GameObject Model; public GameObject Joystick; @@ -45,6 +46,10 @@ void StickEvent(JoystickState state) case "Y": Joystick.transform.localEulerAngles = new Vector3(ConvertRange(entry.Value, 0, 65535, 20, -20), Joystick.transform.localEulerAngles.y, Joystick.transform.localEulerAngles.z); break; + + case "RotationZ": + Joystick.transform.localEulerAngles = new Vector3(Joystick.transform.localEulerAngles.x, Joystick.transform.localEulerAngles.y, ConvertRange(entry.Value, 0, 65535, -30, 30)); + break; } } }