Skip to content

Commit

Permalink
Fixed Y + right shoulder button combination on third party Switch con…
Browse files Browse the repository at this point in the history
…trollers
  • Loading branch information
slouken committed Jun 20, 2024
1 parent 83933fd commit 6e53a36
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/joystick/hidapi/SDL_hidapi_switch.c
Original file line number Diff line number Diff line change
Expand Up @@ -2562,13 +2562,13 @@ static SDL_bool HIDAPI_DriverSwitch_UpdateDevice(SDL_HIDAPI_Device *device)
continue;
}

if (ctx->m_rgucReadBuffer[0] == k_eSwitchInputReportIDs_SubcommandReply) {
continue;
}

if (ctx->m_bInputOnly) {
HandleInputOnlyControllerState(joystick, ctx, (SwitchInputOnlyControllerStatePacket_t *)&ctx->m_rgucReadBuffer[0]);
} else {
if (ctx->m_rgucReadBuffer[0] == k_eSwitchInputReportIDs_SubcommandReply) {
continue;
}

ctx->m_nCurrentInputMode = ctx->m_rgucReadBuffer[0];

switch (ctx->m_rgucReadBuffer[0]) {
Expand Down

0 comments on commit 6e53a36

Please sign in to comment.