ANDROID: Map right click to Camera/Search
This commit is contained in:
parent
2a2c7f5bef
commit
dd1c52fd82
2 changed files with 17 additions and 0 deletions
|
@ -331,6 +331,21 @@ void OSystem_Android::pushEvent(int type, int arg1, int arg2, int arg3,
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
case JKEYCODE_CAMERA:
|
||||||
|
case JKEYCODE_SEARCH:
|
||||||
|
if (arg1 == JACTION_DOWN)
|
||||||
|
e.type = Common::EVENT_RBUTTONDOWN;
|
||||||
|
else
|
||||||
|
e.type = Common::EVENT_RBUTTONUP;
|
||||||
|
|
||||||
|
e.mouse = getEventManager()->getMousePos();
|
||||||
|
|
||||||
|
lockMutex(_event_queue_lock);
|
||||||
|
_event_queue.push(e);
|
||||||
|
unlockMutex(_event_queue_lock);
|
||||||
|
|
||||||
|
return;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
LOGW("unmapped system key: %d", arg2);
|
LOGW("unmapped system key: %d", arg2);
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -80,6 +80,8 @@ public class ScummVMEvents implements
|
||||||
switch (keyCode) {
|
switch (keyCode) {
|
||||||
case KeyEvent.KEYCODE_BACK:
|
case KeyEvent.KEYCODE_BACK:
|
||||||
case KeyEvent.KEYCODE_MENU:
|
case KeyEvent.KEYCODE_MENU:
|
||||||
|
case KeyEvent.KEYCODE_CAMERA:
|
||||||
|
case KeyEvent.KEYCODE_SEARCH:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue