From c75cb3ba7b7998d311d6f317e104b6a9bff27781 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Sat, 28 Oct 2017 20:03:55 -0500 Subject: [PATCH] Added Razer Raiju VID and PID combination. Moved arrays. Related to issue #136. --- DS4Windows/DS4Library/DS4Devices.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DS4Windows/DS4Library/DS4Devices.cs b/DS4Windows/DS4Library/DS4Devices.cs index 5493beb..5ca6cef 100644 --- a/DS4Windows/DS4Library/DS4Devices.cs +++ b/DS4Windows/DS4Library/DS4Devices.cs @@ -17,6 +17,8 @@ namespace DS4Windows private static List DisabledDevices = new List(); private static Stopwatch sw = new Stopwatch(); public static bool isExclusiveMode = false; + private static int[] vids = { 0x054C, 0x1532 }; + private static int[] pid = { 0xBA0, 0x5C4, 0x09CC, 0x1000 }; private static string devicePathToInstanceId(string devicePath) { @@ -37,8 +39,6 @@ namespace DS4Windows { lock (Devices) { - int[] vids = { 0x054C }; - int[] pid = { 0xBA0, 0x5C4, 0x09CC }; IEnumerable hDevices = HidDevices.Enumerate(vids, pid); // Sort Bluetooth first in case USB is also connected on the same controller. hDevices = hDevices.OrderBy((HidDevice d) => { return DS4Device.HidConnectionType(d); });