Skip to content

Commit

Permalink
more rg35xx plus changes
Browse files Browse the repository at this point in the history
  • Loading branch information
joyrider3774 committed Jan 28, 2024
1 parent 200fb21 commit 6c0463d
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/CGame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,18 @@ void CGame::ResetButtons() {
void CGame::HandleJoystickEvent(int Button) {
switch (Button)
{
case SDL_CONTROLLER_BUTTON_Y:
#if defined(RG35XX_PLUS_BATOCERA)
case SDL_CONTROLLER_BUTTON_X:
#else
case SDL_CONTROLLER_BUTTON_Y:
#endif
ButNextSkin = true;
break;
case SDL_CONTROLLER_BUTTON_X:
#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 @@ -88,14 +96,14 @@ void CGame::HandleJoystickEvent(int Button) {
ButRight = true;
break;
//trimui have buttons swapped
#ifdef TRIMUI_SMART_PRO
#if defined(TRIMUI_SMART_PRO) || defined(RG35XX_PLUS_BATOCERA)
case SDL_CONTROLLER_BUTTON_B:
#else
case SDL_CONTROLLER_BUTTON_A:
#endif
ButA = true;
break;
#ifdef TRIMUI_SMART_PRO
#if defined(TRIMUI_SMART_PRO) || defined(RG35XX_PLUS_BATOCERA)
case SDL_CONTROLLER_BUTTON_A:
#else
case SDL_CONTROLLER_BUTTON_B:
Expand All @@ -108,7 +116,7 @@ void CGame::HandleJoystickEvent(int Button) {
case SDL_CONTROLLER_BUTTON_BACK:
ButBack = true;
break;
#ifdef TRIMUI_SMART_PRO
#if defined(TRIMUI_SMART_PRO) || defined(RG35XX_PLUS_BATOCERA)
case SDL_CONTROLLER_BUTTON_GUIDE:
GameState = GSQuit;
break;
Expand Down

0 comments on commit 6c0463d

Please sign in to comment.