diff --git a/DS4Windows/DS4Library/DS4Audio.cs b/DS4Windows/DS4Library/DS4Audio.cs index e7284b0..662ffaa 100644 --- a/DS4Windows/DS4Library/DS4Audio.cs +++ b/DS4Windows/DS4Library/DS4Audio.cs @@ -69,6 +69,13 @@ namespace DS4Windows.DS4Library endpointVolume = interfacePointer as IAudioEndpointVolume; 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(); Marshal.ReleaseComObject(audioDevice); diff --git a/DS4Windows/DS4Library/DS4Devices.cs b/DS4Windows/DS4Library/DS4Devices.cs index c97ea87..5bd9074 100644 --- a/DS4Windows/DS4Library/DS4Devices.cs +++ b/DS4Windows/DS4Library/DS4Devices.cs @@ -44,6 +44,7 @@ namespace DS4Windows new VidPidInfo(HORI_VID, 0x00EE), // Hori PS4 Mini Wired Gamepad new VidPidInfo(0x7545, 0x0104), new VidPidInfo(0x2E95, 0x7725), // Scuf Vantage gamepad + new VidPidInfo(0x11C0, 0x4001), // PS4 Fun Controller }; private static string devicePathToInstanceId(string devicePath)