android: disconnect the mouse gamepad by default. Don't swallow all
keydowns events
This commit is contained in:
parent
460a6828cf
commit
b15b8de12b
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue