ANDROID: Fix bad message id for long press back btn
This commit is contained in:
parent
13654b9872
commit
97b4ee93f1
1 changed files with 3 additions and 1 deletions
|
@ -73,12 +73,14 @@ public class ScummVMEvents implements
|
||||||
}
|
}
|
||||||
|
|
||||||
final static int MSG_SMENU_LONG_PRESS = 1;
|
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() {
|
final private Handler keyHandler = new Handler() {
|
||||||
@Override
|
@Override
|
||||||
public void handleMessage(Message msg) {
|
public void handleMessage(Message msg) {
|
||||||
if (msg.what == MSG_SMENU_LONG_PRESS) {
|
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)
|
InputMethodManager imm = (InputMethodManager)
|
||||||
_context.getSystemService(Context.INPUT_METHOD_SERVICE);
|
_context.getSystemService(Context.INPUT_METHOD_SERVICE);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue