input: don't exit when mapping the exit key

This commit is contained in:
Flyinghead 2020-04-26 11:27:45 +02:00
parent edda259adc
commit c9d8222889
1 changed files with 2 additions and 0 deletions

View File

@ -53,6 +53,7 @@ bool GamepadDevice::gamepad_btn_input(u32 code, bool pressed)
{
_input_detected(code);
_input_detected = nullptr;
return true;
}
if (!input_mapper || _maple_port < 0 || _maple_port >= (int)ARRAY_SIZE(kcode))
return false;
@ -158,6 +159,7 @@ bool GamepadDevice::gamepad_axis_input(u32 code, int value)
{
_input_detected(code);
_input_detected = NULL;
return true;
}
if (!input_mapper || _maple_port < 0 || _maple_port >= (int)ARRAY_SIZE(kcode))
return false;