dinput: Report mouse and keyboard as being emulated. This works better for some games.
This commit is contained in:
parent
4bb9da7776
commit
35016b0513
|
@ -373,7 +373,7 @@ static HRESULT WINAPI SysKeyboardWImpl_GetCapabilities(LPDIRECTINPUTDEVICE8W ifa
|
|||
}
|
||||
|
||||
devcaps.dwSize = lpDIDevCaps->dwSize;
|
||||
devcaps.dwFlags = DIDC_ATTACHED;
|
||||
devcaps.dwFlags = DIDC_ATTACHED | DIDC_EMULATED;
|
||||
if (This->base.dinput->dwVersion >= 0x0800)
|
||||
devcaps.dwDevType = DI8DEVTYPE_KEYBOARD | (DI8DEVTYPEKEYBOARD_UNKNOWN << 8);
|
||||
else
|
||||
|
|
|
@ -666,7 +666,7 @@ static HRESULT WINAPI SysMouseWImpl_GetCapabilities(LPDIRECTINPUTDEVICE8W iface,
|
|||
}
|
||||
|
||||
devcaps.dwSize = lpDIDevCaps->dwSize;
|
||||
devcaps.dwFlags = DIDC_ATTACHED;
|
||||
devcaps.dwFlags = DIDC_ATTACHED | DIDC_EMULATED;
|
||||
if (This->base.dinput->dwVersion >= 0x0800)
|
||||
devcaps.dwDevType = DI8DEVTYPE_MOUSE | (DI8DEVTYPEMOUSE_TRADITIONAL << 8);
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue