From 46dc22dd63025459df9bbae54976f638dac711a7 Mon Sep 17 00:00:00 2001 From: bicarus <202771338+bicarus-dev@users.noreply.github.com> Date: Tue, 30 Dec 2025 14:30:33 -0800 Subject: [PATCH] gitadora: (arena model) headphones i/o (#485) ## Link to GitHub Issue, if one exists #477 ## Description of change Plumb through headphone jack detection. Touch screen menu for headphone volume lights up. ## Testing Tested guitar. --- src/spice2x/games/gitadora/bi2x_hook.cpp | 4 ++-- src/spice2x/games/gitadora/io.cpp | 1 + src/spice2x/games/gitadora/io.h | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/spice2x/games/gitadora/bi2x_hook.cpp b/src/spice2x/games/gitadora/bi2x_hook.cpp index 2ae60ae..5c7fb7a 100644 --- a/src/spice2x/games/gitadora/bi2x_hook.cpp +++ b/src/spice2x/games/gitadora/bi2x_hook.cpp @@ -295,13 +295,13 @@ namespace games::gitadora { memset(o_DevStatus, 0x00, sizeof(AIO_IOB2_BI2X_AC1__DEVSTATUS)); - auto &buttons = get_buttons(); // struct may be misaligned o_DevStatus->Input.CN8_10 = GameAPI::Buttons::getState(RI_MGR, buttons[Buttons::Test]) ? 0 : 0xFF; o_DevStatus->Input.CN9_8 = GameAPI::Buttons::getState(RI_MGR, buttons[Buttons::Service]) ? 0 : 0xFF; o_DevStatus->Input.CN9_9 = GameAPI::Buttons::getState(RI_MGR, buttons[Buttons::Coin]) ? 0 : 0xFF; - + o_DevStatus->Input.CN12_14 = GameAPI::Buttons::getState(RI_MGR, buttons[Buttons::Headphone]) ? 0xFF : 0; + // coin o_DevStatus->Input.Coin1Count = eamuse_coin_get_stock(); } diff --git a/src/spice2x/games/gitadora/io.cpp b/src/spice2x/games/gitadora/io.cpp index 6f31019..f7c226b 100644 --- a/src/spice2x/games/gitadora/io.cpp +++ b/src/spice2x/games/gitadora/io.cpp @@ -10,6 +10,7 @@ std::vector