Use only valve VID for X360 emulation; Keep PID

Fixes emulated controller not being recognized by some titles (Forza)
main
Peter Repukat 3 years ago
parent efabb2cfb1
commit f59d9638c5

@ -540,7 +540,7 @@ HidHide::SmallHidInfo HidHide::GetDeviceInfo(const DeviceInstancePath& instance_
? buffer
: L"");
// Valve emulated gamepad PID/VID; mirrord by ViGEm
if (attributes.VendorID == 0x28de && attributes.ProductID == 0x11FF) {
if (attributes.VendorID == 0x28de /* && attributes.ProductID == 0x11FF*/) {
res.name = std::wstring(L"ViGEm Emulated: ") + res.name;
}
res.base_container_device_instance_path = BaseContainerDeviceInstancePath(instance_path);

@ -91,7 +91,7 @@ void InputRedirector::runLoop()
// but Steam ONLY does this if it is configured to support X360 controller rebinding!!!
// Otherwise, this application (GloSC/GlosSI) will pickup the emulated controller as well!
vigem_target_set_vid(vt_x360_[i], 0x28de); //VALVE_DIRECTINPUT_GAMEPAD_VID
vigem_target_set_pid(vt_x360_[i], 0x11FF); //VALVE_DIRECTINPUT_GAMEPAD_PID
// vigem_target_set_pid(vt_x360_[i], 0x11FF); //VALVE_DIRECTINPUT_GAMEPAD_PID
// TODO: MAYBE!: In a future version, use something like OpenXInput
//and filter out emulated controllers to support a greater amount of controllers simultaneously

@ -51,8 +51,8 @@ END
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION 0,0,0,0041050
PRODUCTVERSION 0,0,0,0041050
FILEVERSION 0,0,0,6700505
PRODUCTVERSION 0,0,0,6700505
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
@ -69,12 +69,12 @@ BEGIN
BEGIN
VALUE "CompanyName", "Peter Repukat - FlatspotSoftware"
VALUE "FileDescription", "GlosSI - SteamTarget"
VALUE "FileVersion", "0.0.0.cb41e5f"
VALUE "FileVersion", "0.0.0.67ff5d5"
VALUE "InternalName", "GlosSITarget"
VALUE "LegalCopyright", "Copyright (C) 2021 Peter Repukat - FlatspotSoftware"
VALUE "OriginalFilename", "GlosSITarget.exe"
VALUE "ProductName", "GlosSI"
VALUE "ProductVersion", "0.0.0.cb41e5f"
VALUE "ProductVersion", "0.0.0.67ff5d5"
END
END
BLOCK "VarFileInfo"
@ -463,6 +463,22 @@ END

Loading…
Cancel
Save