aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/android
diff options
context:
space:
mode:
authorThanasis Antoniou2019-12-14 15:46:23 +0200
committerThanasis Antoniou2019-12-14 15:46:23 +0200
commit97b4ee93f1fad5bcca7cbb5472c0138be9f607db (patch)
treec69d6851f1571fb79ec8eac3bc721487c9ae156a /backends/platform/android
parent13654b9872e7a40a837449a1b9d52340fcef63a9 (diff)
downloadscummvm-rg350-97b4ee93f1fad5bcca7cbb5472c0138be9f607db.tar.gz
scummvm-rg350-97b4ee93f1fad5bcca7cbb5472c0138be9f607db.tar.bz2
scummvm-rg350-97b4ee93f1fad5bcca7cbb5472c0138be9f607db.zip
ANDROID: Fix bad message id for long press back btn
Diffstat (limited to 'backends/platform/android')
-rw-r--r--backends/platform/android/org/scummvm/scummvm/ScummVMEvents.java4
1 files changed, 3 insertions, 1 deletions
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);