From 97b4ee93f1fad5bcca7cbb5472c0138be9f607db Mon Sep 17 00:00:00 2001 From: Thanasis Antoniou Date: Sat, 14 Dec 2019 15:46:23 +0200 Subject: ANDROID: Fix bad message id for long press back btn --- backends/platform/android/org/scummvm/scummvm/ScummVMEvents.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'backends') diff --git a/backends/platform/android/org/scummvm/scummvm/ScummVMEvents.java b/backends/platform/android/org/scummvm/scummvm/ScummVMEvents.java index 4da87defad..9c8dd16cca 100644 --- a/backends/platform/android/org/scummvm/scummvm/ScummVMEvents.java +++ b/backends/platform/android/org/scummvm/scummvm/ScummVMEvents.java @@ -73,12 +73,14 @@ public class ScummVMEvents implements } final static int MSG_SMENU_LONG_PRESS = 1; - final static int MSG_SBACK_LONG_PRESS = 1; + final static int MSG_SBACK_LONG_PRESS = 2; final private Handler keyHandler = new Handler() { @Override public void handleMessage(Message msg) { if (msg.what == MSG_SMENU_LONG_PRESS) { + // this displays the android keyboard (see showVirtualKeyboard() in ScummVMActivity.java) + // when menu key is long-pressed InputMethodManager imm = (InputMethodManager) _context.getSystemService(Context.INPUT_METHOD_SERVICE); -- cgit v1.2.3