input: don't override device's vendor id, expected to do comparsion instead

This commit is contained in:
RadWolfie 2022-10-05 06:42:56 -05:00
parent 547c3ae663
commit 4dccf6d5b9
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ namespace Libusb
}
else {
for (size_t i = 0; i < ARRAY_SIZE(SupportedDevices_VidPid); ++i) {
if ((Desc->idVendor = SupportedDevices_VidPid[i][0]) && (Desc->idProduct == SupportedDevices_VidPid[i][1])) {
if ((Desc->idVendor == SupportedDevices_VidPid[i][0]) && (Desc->idProduct == SupportedDevices_VidPid[i][1])) {
m_Type = XBOX_INPUT_DEVICE::HW_XBOX_CONTROLLER;
m_UcType = XINPUT_DEVTYPE_GAMEPAD;
m_UcSubType = XINPUT_DEVSUBTYPE_GC_GAMEPAD;