Skip to content

Commit

Permalink
Filter unknown device types
Browse files Browse the repository at this point in the history
  • Loading branch information
elishacloud committed Jun 25, 2024
1 parent 954949d commit 0abb7eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion BuildNo.rc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define BUILD_NUMBER 70
#define BUILD_NUMBER 71
6 changes: 6 additions & 0 deletions IDirectInputX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ HRESULT m_IDirectInputX::EnumDevicesX(DWORD dwDevType, V lpCallback, LPVOID pvRe

DI.dwDevType = devType7 | (devSubType7 << 8) | hidDevice;

// Filter unknown device types
if (DI.dwDevType = 0x10001)
{
return DIENUM_CONTINUE;
}

return self->lpCallback(&DI, self->pvRef);
}
} CallbackContext;
Expand Down

0 comments on commit 0abb7eb

Please sign in to comment.