Merge pull request #148 from Remboooo/remboooo/fix-exiting-emulation-mode-with-gpio-button
Fix exiting emulation mode with ENTER (GPIO) button
This commit is contained in:
commit
a382c75376
1 changed files with 8 additions and 4 deletions
|
@ -140,16 +140,20 @@ void InputMappings::CheckButtonsEmulationMode()
|
||||||
{
|
{
|
||||||
buttonFlags = 0;
|
buttonFlags = 0;
|
||||||
|
|
||||||
if (IEC_Bus::GetInputButtonPressed(INPUT_BUTTON_ENTER))
|
if (IEC_Bus::GetInputButtonRepeating(INPUT_BUTTON_UP))
|
||||||
SetButtonFlag(ESC_FLAG);
|
|
||||||
else if (IEC_Bus::GetInputButtonPressed(INPUT_BUTTON_UP))
|
|
||||||
SetButtonFlag(NEXT_FLAG);
|
SetButtonFlag(NEXT_FLAG);
|
||||||
else if (IEC_Bus::GetInputButtonPressed(INPUT_BUTTON_DOWN))
|
else if (IEC_Bus::GetInputButtonRepeating(INPUT_BUTTON_DOWN))
|
||||||
SetButtonFlag(PREV_FLAG);
|
SetButtonFlag(PREV_FLAG);
|
||||||
//else if (IEC_Bus::GetInputButtonPressed(INPUT_BUTTON_BACK))
|
//else if (IEC_Bus::GetInputButtonPressed(INPUT_BUTTON_BACK))
|
||||||
// SetButtonFlag(BACK_FLAG);
|
// SetButtonFlag(BACK_FLAG);
|
||||||
//else if (IEC_Bus::GetInputButtonPressed(INPUT_BUTTON_INSERT))
|
//else if (IEC_Bus::GetInputButtonPressed(INPUT_BUTTON_INSERT))
|
||||||
// SetButtonFlag(INSERT_FLAG);
|
// SetButtonFlag(INSERT_FLAG);
|
||||||
|
else {
|
||||||
|
enterButtonPressed = !IEC_Bus::GetInputButtonReleased(INPUT_BUTTON_ENTER);
|
||||||
|
if (enterButtonPressedPrev && !enterButtonPressed)
|
||||||
|
SetButtonFlag(ESC_FLAG);
|
||||||
|
enterButtonPressedPrev = enterButtonPressed;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue