Skip to content

Commit

Permalink
fix rg35xx plus batocero input
Browse files Browse the repository at this point in the history
  • Loading branch information
joyrider3774 committed Jan 29, 2024
1 parent 6c0463d commit 514a039
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/CGame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,10 @@ void CGame::ResetButtons() {
void CGame::HandleJoystickEvent(int Button) {
switch (Button)
{
#if defined(RG35XX_PLUS_BATOCERA)
case SDL_CONTROLLER_BUTTON_X:
#else
case SDL_CONTROLLER_BUTTON_Y:
#endif
ButNextSkin = true;
break;
#if defined(RG35XX_PLUS_BATOCERA)
case SDL_CONTROLLER_BUTTON_Y:
#else
case SDL_CONTROLLER_BUTTON_X:
#endif
ButNextMusic = true;
break;
case SDL_CONTROLLER_BUTTON_LEFTSHOULDER:
Expand All @@ -95,15 +87,14 @@ void CGame::HandleJoystickEvent(int Button) {
case SDL_CONTROLLER_BUTTON_DPAD_RIGHT:
ButRight = true;
break;
//trimui have buttons swapped
#if defined(TRIMUI_SMART_PRO) || defined(RG35XX_PLUS_BATOCERA)
#if defined(TRIMUI_SMART_PRO)
case SDL_CONTROLLER_BUTTON_B:
#else
case SDL_CONTROLLER_BUTTON_A:
#endif
ButA = true;
break;
#if defined(TRIMUI_SMART_PRO) || defined(RG35XX_PLUS_BATOCERA)
#if defined(TRIMUI_SMART_PRO)
case SDL_CONTROLLER_BUTTON_A:
#else
case SDL_CONTROLLER_BUTTON_B:
Expand All @@ -113,10 +104,19 @@ void CGame::HandleJoystickEvent(int Button) {
case SDL_CONTROLLER_BUTTON_START:
ButStart = true;
break;
case SDL_CONTROLLER_BUTTON_BACK:
#if defined(RG35XX_PLUS_BATOCERA)
case SDL_CONTROLLER_BUTTON_GUIDE:
#else
case SDL_CONTROLLER_BUTTON_BACK:
#endif
ButBack = true;
break;
#if defined(TRIMUI_SMART_PRO) || defined(RG35XX_PLUS_BATOCERA)
#if defined(RG35XX_PLUS_BATOCERA)
case SDL_CONTROLLER_BUTTON_BACK:
GameState = GSQuit;
break;
#endif
#if defined(TRIMUI_SMART_PRO)
case SDL_CONTROLLER_BUTTON_GUIDE:
GameState = GSQuit;
break;
Expand Down

0 comments on commit 514a039

Please sign in to comment.