android: disconnect the mouse gamepad by default. Don't swallow all

keydowns events
This commit is contained in:
Flyinghead 2019-02-17 18:34:22 +01:00
parent 460a6828cf
commit b15b8de12b
2 changed files with 4 additions and 2 deletions

View File

@ -40,6 +40,8 @@ bool GamepadDevice::gamepad_btn_input(u32 code, bool pressed)
if (input_mapper == NULL || _maple_port < 0 || _maple_port >= ARRAY_SIZE(kcode))
return false;
DreamcastKey key = input_mapper->get_button_id(code);
if (key == EMU_BTN_NONE)
return false;
if (key < 0x10000)
{

View File

@ -191,6 +191,6 @@ public:
return GamepadDevice::gamepad_btn_input(code, pressed);
}
};
AndroidMouseGamepadDevice mouse_gamepad(0);
// FIXME Don't connect it by default or any screen touch will register as button A press
AndroidMouseGamepadDevice mouse_gamepad(-1);