Skip to content

Commit

Permalink
gamepad bluetooth assert work around (#838)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wc4ever authored May 6, 2024
1 parent fcdcce9 commit 871479a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions WickedEngine/wiRawInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,12 +305,13 @@ namespace wi::input::rawinput
for (USHORT i = 0; i < Caps.NumberInputValueCaps; i++)
{
ULONG value;
status = HidP_GetUsageValue(
if(HidP_GetUsageValue(
HidP_Input, pValueCaps[i].UsagePage, 0,
pValueCaps[i].Range.UsageMin, &value, pPreparsedData,
(PCHAR)raw.data.hid.bRawData, raw.data.hid.dwSizeHid
);
assert(status == HIDP_STATUS_SUCCESS);
(PCHAR)raw.data.hid.bRawData, raw.data.hid.dwSizeHid) != HIDP_STATUS_SUCCESS)
{
continue;
}

switch (pValueCaps[i].Range.UsageMin)
{
Expand Down

0 comments on commit 871479a

Please sign in to comment.