mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-01-12 08:19:13 +01:00
Added PS4 Fun Controller support
This commit is contained in:
parent
480c93be0f
commit
db74ea04da
@ -69,6 +69,13 @@ namespace DS4Windows.DS4Library
|
|||||||
endpointVolume = interfacePointer as IAudioEndpointVolume;
|
endpointVolume = interfacePointer as IAudioEndpointVolume;
|
||||||
endpointVolume.RegisterControlChangeNotify(this);
|
endpointVolume.RegisterControlChangeNotify(this);
|
||||||
}
|
}
|
||||||
|
else if (deviceName.Contains("PS4 Fun Controller"))
|
||||||
|
{
|
||||||
|
object interfacePointer;
|
||||||
|
Marshal.ThrowExceptionForHR(audioDevice.Activate(ref IID_IAudioEndpointVolume, ClsCtx.ALL, IntPtr.Zero, out interfacePointer));
|
||||||
|
endpointVolume = interfacePointer as IAudioEndpointVolume;
|
||||||
|
endpointVolume.RegisterControlChangeNotify(this);
|
||||||
|
}
|
||||||
|
|
||||||
RefreshVolume();
|
RefreshVolume();
|
||||||
Marshal.ReleaseComObject(audioDevice);
|
Marshal.ReleaseComObject(audioDevice);
|
||||||
|
@ -44,6 +44,7 @@ namespace DS4Windows
|
|||||||
new VidPidInfo(HORI_VID, 0x00EE), // Hori PS4 Mini Wired Gamepad
|
new VidPidInfo(HORI_VID, 0x00EE), // Hori PS4 Mini Wired Gamepad
|
||||||
new VidPidInfo(0x7545, 0x0104),
|
new VidPidInfo(0x7545, 0x0104),
|
||||||
new VidPidInfo(0x2E95, 0x7725), // Scuf Vantage gamepad
|
new VidPidInfo(0x2E95, 0x7725), // Scuf Vantage gamepad
|
||||||
|
new VidPidInfo(0x11C0, 0x4001), // PS4 Fun Controller
|
||||||
};
|
};
|
||||||
|
|
||||||
private static string devicePathToInstanceId(string devicePath)
|
private static string devicePathToInstanceId(string devicePath)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user