Skip to content

Instantly share code, notes, and snippets.

View Ryochan7's full-sized avatar

Travis Nickles Ryochan7

View GitHub Profile
diff --git a/Dmf/Solution/DmfK/DmfK.vcxproj b/Dmf/Solution/DmfK/DmfK.vcxproj
index 738397c..070527b 100644
--- a/Dmf/Solution/DmfK/DmfK.vcxproj
+++ b/Dmf/Solution/DmfK/DmfK.vcxproj
@@ -32,10 +32,14 @@
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
<RootNamespace>DmfK</RootNamespace>
- <SccProjectName>SAK</SccProjectName>
- <SccAuxPath>SAK</SccAuxPath>
diff --git a/DS4Windows/DS4Control/ControlService.cs b/DS4Windows/DS4Control/ControlService.cs
index b33bec76..8a3e54c2 100644
--- a/DS4Windows/DS4Control/ControlService.cs
+++ b/DS4Windows/DS4Control/ControlService.cs
@@ -13,6 +13,7 @@ using SharpOSC;
using static DS4Windows.Global;
using DS4WinWPF.DS4Control;
using DS4Windows.DS4Control;
+using Nefarius.ViGEm.Client.Targets.DualShock4;
diff --git a/DS4Windows/DS4Control/ControlService.cs b/DS4Windows/DS4Control/ControlService.cs
index 49f61696..c1cd694c 100644
--- a/DS4Windows/DS4Control/ControlService.cs
+++ b/DS4Windows/DS4Control/ControlService.cs
@@ -2250,6 +2250,33 @@ namespace DS4Windows
if (!device.PrimaryDevice)
{
+ if (device.OutputMapGyro)
+ {
@Ryochan7
Ryochan7 / joycon_ds4win_tests.diff
Last active February 25, 2022 07:36
JoyCon changes
diff --git a/DS4Windows/DS4Control/ControlService.cs b/DS4Windows/DS4Control/ControlService.cs
index 49f61696..c1cd694c 100644
--- a/DS4Windows/DS4Control/ControlService.cs
+++ b/DS4Windows/DS4Control/ControlService.cs
@@ -2250,6 +2250,33 @@ namespace DS4Windows
if (!device.PrimaryDevice)
{
+ if (device.OutputMapGyro)
+ {
diff --git a/DS4Windows/DS4Control/ControlService.cs b/DS4Windows/DS4Control/ControlService.cs
index a47dfb0b..86a9d578 100644
--- a/DS4Windows/DS4Control/ControlService.cs
+++ b/DS4Windows/DS4Control/ControlService.cs
@@ -10,6 +10,7 @@ using System.Windows.Threading;
using DS4WinWPF.DS4Control;
using Microsoft.Win32;
using Sensorit.Base;
+using System.Linq;
BT
0 Report ID 49 (0x31)
1 Garbage??? (Seems to increment by 16 each poll)
2 LX (0-255)
3 LY (0-255)
4 RX (0-255)
5 RY (0-255)
6 L2 (0-255)
7 R2 (0-255)
USB
0 Report ID 1 (0x01)
1 LX (0-255)
2 LY (0-255)
3 RX (0-255)
4 RY (0-255)
5 L2 (0-255)
6 R2 (0-255)
7 Frame Counter (Increment by 1 per poll)
@Ryochan7
Ryochan7 / testflickstick2.diff
Last active October 21, 2020 03:55
Diff showing steps needed for Flick Stick to work in DS4Windows
diff --git a/DS4Windows/DS4Control/Mapping.cs b/DS4Windows/DS4Control/Mapping.cs
index a0c6f43b..ddfa002a 100644
--- a/DS4Windows/DS4Control/Mapping.cs
+++ b/DS4Windows/DS4Control/Mapping.cs
@@ -1996,6 +1996,45 @@ namespace DS4Windows
MappedState.SASteeringWheelEmulationUnit = Mapping.Scale360degreeGyroAxis(device, eState, ctrl);
}
+ DS4Device d = ctrl.DS4Controllers[device];
+ DS4State crawState = d.getCurrentStateRef();
/*++
Copyright (c) Microsoft Corporation. All rights reserved.
Module Name:
devpkey.h
Abstract:
'joyconmappertest.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_64\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'joyconmappertest.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Users\ryoch\source\repos\joyconmappertest\joyconmappertest\bin\x64\Release\joyconmappertest.exe'. Module was built without symbols.
'joyconmappertest.exe' (CLR v4.0.30319: joyconmappertest.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework\v4.0_4.0.0.0__31bf3856ad364e35\PresentationFramework.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'joyconmappertest.exe' (CLR v4.0.30319: joyconmappertest.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\WindowsBase\v4.0_4.0.0.0__31bf3856ad364e35\WindowsBase.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'joycon