From f81c5e175894ee5b32a4d8e0382469066a2ab79e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20Dj=C3=A4rv?= Date: Wed, 20 Jun 2018 21:49:26 +0200 Subject: [PATCH] invert axis on VPCStarCitizen sticks --- .../Assets/Devices/VPC-Star-Citizen/VPCStarCitizenL.cs | 4 ++-- .../Assets/Devices/VPC-Star-Citizen/VPCStarCitizenR.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/JoystickVisualizer/Assets/Devices/VPC-Star-Citizen/VPCStarCitizenL.cs b/JoystickVisualizer/Assets/Devices/VPC-Star-Citizen/VPCStarCitizenL.cs index a3f8419..618da2e 100644 --- a/JoystickVisualizer/Assets/Devices/VPC-Star-Citizen/VPCStarCitizenL.cs +++ b/JoystickVisualizer/Assets/Devices/VPC-Star-Citizen/VPCStarCitizenL.cs @@ -39,10 +39,10 @@ void StickEvent(JoystickState state) break; case "X": - Joystick.transform.localEulerAngles = new Vector3(Joystick.transform.localEulerAngles.x, Joystick.transform.localEulerAngles.y, ConvertRange(entry.Value, 0, 65535, -20, 20)); + Joystick.transform.localEulerAngles = new Vector3(Joystick.transform.localEulerAngles.x, Joystick.transform.localEulerAngles.y, ConvertRange(entry.Value, 0, 65535, 20, -20)); break; case "Y": - Joystick.transform.localEulerAngles = new Vector3(ConvertRange(entry.Value, 0, 65535, -20, 20), Joystick.transform.localEulerAngles.y, Joystick.transform.localEulerAngles.z); + Joystick.transform.localEulerAngles = new Vector3(ConvertRange(entry.Value, 0, 65535, 20, -20), Joystick.transform.localEulerAngles.y, Joystick.transform.localEulerAngles.z); break; } } diff --git a/JoystickVisualizer/Assets/Devices/VPC-Star-Citizen/VPCStarCitizenR.cs b/JoystickVisualizer/Assets/Devices/VPC-Star-Citizen/VPCStarCitizenR.cs index 5e29092..514df58 100644 --- a/JoystickVisualizer/Assets/Devices/VPC-Star-Citizen/VPCStarCitizenR.cs +++ b/JoystickVisualizer/Assets/Devices/VPC-Star-Citizen/VPCStarCitizenR.cs @@ -39,10 +39,10 @@ void StickEvent(JoystickState state) break; case "X": - Joystick.transform.localEulerAngles = new Vector3(Joystick.transform.localEulerAngles.x, Joystick.transform.localEulerAngles.y, ConvertRange(entry.Value, 0, 65535, -20, 20)); + Joystick.transform.localEulerAngles = new Vector3(Joystick.transform.localEulerAngles.x, Joystick.transform.localEulerAngles.y, ConvertRange(entry.Value, 0, 65535, 20, -20)); break; case "Y": - Joystick.transform.localEulerAngles = new Vector3(ConvertRange(entry.Value, 0, 65535, -20, 20), Joystick.transform.localEulerAngles.y, Joystick.transform.localEulerAngles.z); + Joystick.transform.localEulerAngles = new Vector3(ConvertRange(entry.Value, 0, 65535, 20, -20), Joystick.transform.localEulerAngles.y, Joystick.transform.localEulerAngles.z); break; } }