diff --git a/BetterJoyForCemu/BetterJoy.csproj b/BetterJoyForCemu/BetterJoy.csproj
index c37c4f0..5a61856 100644
--- a/BetterJoyForCemu/BetterJoy.csproj
+++ b/BetterJoyForCemu/BetterJoy.csproj
@@ -1,7 +1,5 @@
-
-
Debug
@@ -98,17 +96,11 @@
false
-
- ..\packages\Costura.Fody.3.3.1\lib\net40\Costura.dll
-
..\packages\Crc32.NET.1.2.0\lib\net20\Crc32.NET.dll
-
- ..\packages\Fielder.Fody.1.2.3\lib\net452\Fielder.dll
-
-
- ..\packages\JetBrains.Annotations.2018.3.0\lib\net20\JetBrains.Annotations.dll
+
+ ..\packages\JetBrains.Annotations.2020.1.0\lib\net20\JetBrains.Annotations.dll
..\packages\Nefarius.ViGEm.Client.1.0.0\lib\net452\Nefarius.ViGEm.Client.dll
@@ -281,13 +273,4 @@
-
-
- This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
-
-
-
-
-
-
\ No newline at end of file
diff --git a/BetterJoyForCemu/Joycon.cs b/BetterJoyForCemu/Joycon.cs
index f9a15f7..de5c163 100644
--- a/BetterJoyForCemu/Joycon.cs
+++ b/BetterJoyForCemu/Joycon.cs
@@ -223,7 +223,7 @@ namespace BetterJoyForCemu {
public IXbox360Controller xin;
public IDualShock4Controller ds4;
- short ds4_ts = 0;
+ ushort ds4_ts = 0;
int rumblePeriod = Int32.Parse(ConfigurationManager.AppSettings["RumblePeriod"]);
int lowFreq = Int32.Parse(ConfigurationManager.AppSettings["LowFreqRumble"]);
@@ -1003,22 +1003,14 @@ namespace BetterJoyForCemu {
// Gyro and accel
ds4_ts += 188; // 1.5ms
ds4.SetIMUTimestamp(ds4_ts);
- /*Vector3 gyr = GetGyro() * 1024f;
+ Vector3 gyr = GetGyro(); //* 1024f;
ds4.SetIMUValue(DualShock4IMU.GyroX, (short) gyr.X);
ds4.SetIMUValue(DualShock4IMU.GyroY, (short) gyr.Y);
ds4.SetIMUValue(DualShock4IMU.GyroZ, (short) gyr.Z);
Vector3 acc = GetAccel() * 8192f;
ds4.SetIMUValue(DualShock4IMU.AccelX, (short) acc.X);
ds4.SetIMUValue(DualShock4IMU.AccelY, (short)-acc.Y);
- ds4.SetIMUValue(DualShock4IMU.AccelZ, (short)acc.Z);*/
- ds4_ts = 14;
- ds4.SetIMUTimestamp(0);
- ds4.SetIMUValue(DualShock4IMU.GyroX, ds4_ts);
- ds4.SetIMUValue(DualShock4IMU.GyroY, ds4_ts);
- ds4.SetIMUValue(DualShock4IMU.GyroZ, ds4_ts);
- ds4.SetIMUValue(DualShock4IMU.AccelX, ds4_ts);
- ds4.SetIMUValue(DualShock4IMU.AccelY, ds4_ts);
- ds4.SetIMUValue(DualShock4IMU.AccelZ, ds4_ts);
+ ds4.SetIMUValue(DualShock4IMU.AccelZ, (short)acc.Z);
}
// Get Gyro/Accel data
diff --git a/BetterJoyForCemu/packages.config b/BetterJoyForCemu/packages.config
index 9bf532c..3be009d 100644
--- a/BetterJoyForCemu/packages.config
+++ b/BetterJoyForCemu/packages.config
@@ -1,10 +1,7 @@
-
-
-
-
+
\ No newline at end of file