mirror of
https://github.com/holub/mame
synced 2025-07-05 01:48:29 +03:00
Clean up extended ASCII (nw)
This commit is contained in:
parent
a1b8226a19
commit
dc85827687
@ -276,7 +276,7 @@ private:
|
|||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// Enum each PNP device using WMI and check each device ID to see if it contains
|
// Enum each PNP device using WMI and check each device ID to see if it contains
|
||||||
// "IG_" (ex. "VID_045E&PID_028E&IG_00"). If it does, then it’s an XInput device
|
// "IG_" (ex. "VID_045E&PID_028E&IG_00"). If it does, then it's an XInput device
|
||||||
// Unfortunately this information can not be found by just using DirectInput.
|
// Unfortunately this information can not be found by just using DirectInput.
|
||||||
// Checking against a VID/PID of 0x028E/0x045E won't find 3rd party or future
|
// Checking against a VID/PID of 0x028E/0x045E won't find 3rd party or future
|
||||||
// XInput devices.
|
// XInput devices.
|
||||||
@ -376,7 +376,7 @@ private:
|
|||||||
hr = pDevices[iDevice]->Get(bstrDeviceID.get(), 0L, &var, nullptr, nullptr);
|
hr = pDevices[iDevice]->Get(bstrDeviceID.get(), 0L, &var, nullptr, nullptr);
|
||||||
if (SUCCEEDED(hr) && var.vt == VT_BSTR && var.bstrVal != nullptr)
|
if (SUCCEEDED(hr) && var.vt == VT_BSTR && var.bstrVal != nullptr)
|
||||||
{
|
{
|
||||||
// Check if the device ID contains "IG_". If it does, then it’s an XInput device
|
// Check if the device ID contains "IG_". If it does, then it's an XInput device
|
||||||
// Unfortunately this information can not be found by just using DirectInput
|
// Unfortunately this information can not be found by just using DirectInput
|
||||||
if (wcsstr(var.bstrVal, L"IG_"))
|
if (wcsstr(var.bstrVal, L"IG_"))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user