Skip to content

Commit

Permalink
Only apply JVS button state updates on pad 1.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpd002 committed Apr 19, 2023
1 parent 000e8f4 commit 9a55785
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Source/iop/Iop_NamcoArcade.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,13 @@ void CNamcoArcade::SetButtonState(unsigned int padNumber, PS2::CControllerInfo::
0x0000, //R2,
0x0001, //R3,
};
g_jvsButtonState &= ~buttonBits[button];
g_jvsButtonState |= (pressed ? buttonBits[button] : 0);
g_jvsSystemButtonState &= ~systemButtonBits[button];
g_jvsSystemButtonState |= (pressed ? systemButtonBits[button] : 0);
if(padNumber == 0)
{
g_jvsButtonState &= ~buttonBits[button];
g_jvsButtonState |= (pressed ? buttonBits[button] : 0);
g_jvsSystemButtonState &= ~systemButtonBits[button];
g_jvsSystemButtonState |= (pressed ? systemButtonBits[button] : 0);
}
//The following code path is for handling JVSIF which only earlier games use
if(m_recvAddr && m_sendAddr)
{
Expand Down

0 comments on commit 9a55785

Please sign in to comment.