Added PS4 Fun Controller support

This commit is contained in:
Travis Nickles 2019-04-16 15:56:51 -05:00
parent 480c93be0f
commit db74ea04da
2 changed files with 8 additions and 0 deletions

View File

@ -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);

View File

@ -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)