mirror of
https://github.com/shadps4-emu/ext-SDL.git
synced 2025-02-12 22:39:00 +00:00
Fixed Y + right shoulder button combination on third party Switch controllers
This commit is contained in:
parent
83933fdfa0
commit
6e53a36414
@ -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]) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user