mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-08-20 00:55:05 -05:00
erreula: fix inverted IsDecideSelectLeft/RightButtonError
Both functions returned != where == was meant, so each reported true for every selection except the one it was asking about, and both returned true when no button had been selected at all (BUTTON_SELECTION::NONE). IsDecideSelectButtonError directly above uses != correctly, since it asks whether any button was selected, which is presumably where this came from. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -152,12 +152,12 @@ namespace erreula
|
||||
|
||||
bool IsDecideSelectLeftButtonError() const
|
||||
{
|
||||
return m_buttonSelection != BUTTON_SELECTION::LEFT;
|
||||
return m_buttonSelection == BUTTON_SELECTION::LEFT;
|
||||
}
|
||||
|
||||
bool IsDecideSelectRightButtonError() const
|
||||
{
|
||||
return m_buttonSelection != BUTTON_SELECTION::RIGHT;
|
||||
return m_buttonSelection == BUTTON_SELECTION::RIGHT;
|
||||
}
|
||||
|
||||
void SetButtonSelection(BUTTON_SELECTION selection)
|
||||
|
||||
Reference in New Issue
Block a user