mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-02-09 05:03:25 +01:00
parent
5ef3fc76cf
commit
532444de48
@ -1,6 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
@ -55,7 +54,8 @@ namespace DS4Windows
|
|||||||
for (int j = 0; !found && j < devInfoLen; j++)
|
for (int j = 0; !found && j < devInfoLen; j++)
|
||||||
{
|
{
|
||||||
VidPidInfo tempInfo = devInfo[j];
|
VidPidInfo tempInfo = devInfo[j];
|
||||||
if (tempDev.Attributes.VendorId == tempInfo.vid &&
|
if (tempDev.Capabilities.Usage == 0x05 &&
|
||||||
|
tempDev.Attributes.VendorId == tempInfo.vid &&
|
||||||
tempDev.Attributes.ProductId == tempInfo.pid)
|
tempDev.Attributes.ProductId == tempInfo.pid)
|
||||||
{
|
{
|
||||||
found = true;
|
found = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user