[HID] Make WinKey GetCapabilities return success, fixes CoD4 console

This commit is contained in:
emoose 2020-01-15 02:13:11 +00:00 committed by illusion
parent 9baeee9b27
commit 0b4834df9d
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ X_STATUS WinKeyInputDriver::Setup(
X_RESULT WinKeyInputDriver::GetCapabilities(uint32_t user_index, uint32_t flags,
X_INPUT_CAPABILITIES* out_caps) {
if (user_index != user_index_) {
if (!cvars::keyboard_passthru && user_index != user_index_) {
return X_ERROR_DEVICE_NOT_CONNECTED;
}