Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -r residualvm/backends/platform/android/events.cpp residualvm-gillou/backends/platform/android/events.cpp
- 580c580
- < case JE_DPAD:
- ---
- > case JE_DPAD: //GSI
- 582a583,663
- > switch (arg1) {
- > case JACTION_DOWN:
- > e.type = Common::EVENT_KEYDOWN;
- > break;
- > case JACTION_UP:
- > e.type = Common::EVENT_KEYUP;
- > break;
- > default:
- > LOGE("unhandled jaction on dpad key: %d", arg1);
- > return;
- > }
- >
- > e.kbd.keycode = Common::KEYCODE_UP;
- >
- > lockMutex(_event_queue_lock);
- > _event_queue.push(e);
- > unlockMutex(_event_queue_lock);
- > return;
- >
- > case JKEYCODE_DPAD_DOWN:
- > switch (arg1) {
- > case JACTION_DOWN:
- > e.type = Common::EVENT_KEYDOWN;
- > break;
- > case JACTION_UP:
- > e.type = Common::EVENT_KEYUP;
- > break;
- > default:
- > LOGE("unhandled jaction on dpad key: %d", arg1);
- > return;
- > }
- >
- > e.kbd.keycode = Common::KEYCODE_DOWN;
- >
- > lockMutex(_event_queue_lock);
- > _event_queue.push(e);
- > unlockMutex(_event_queue_lock);
- > return;
- >
- > case JKEYCODE_DPAD_LEFT:
- > switch (arg1) {
- > case JACTION_DOWN:
- > e.type = Common::EVENT_KEYDOWN;
- > break;
- > case JACTION_UP:
- > e.type = Common::EVENT_KEYUP;
- > break;
- > default:
- > LOGE("unhandled jaction on dpad key: %d", arg1);
- > return;
- > }
- >
- > e.kbd.keycode = Common::KEYCODE_LEFT;
- >
- > lockMutex(_event_queue_lock);
- > _event_queue.push(e);
- > unlockMutex(_event_queue_lock);
- > return;
- >
- > case JKEYCODE_DPAD_RIGHT:
- > switch (arg1) {
- > case JACTION_DOWN:
- > e.type = Common::EVENT_KEYDOWN;
- > break;
- > case JACTION_UP:
- > e.type = Common::EVENT_KEYUP;
- > break;
- > default:
- > LOGE("unhandled jaction on dpad key: %d", arg1);
- > return;
- > }
- >
- > e.kbd.keycode = Common::KEYCODE_RIGHT;
- >
- > lockMutex(_event_queue_lock);
- > _event_queue.push(e);
- > unlockMutex(_event_queue_lock);
- > return;
- >
- > /*switch (arg2) {
- > case JKEYCODE_DPAD_UP:
- 641,642c722
- <
- < return;
- ---
- > return;*/
- 678,679c758,759
- < case JE_LONG:
- < if (!_show_mouse &&
- ---
- > case JE_LONG: //GSI
- > if (/*!_show_mouse*/0 &&
- 694,695c774,775
- < case JE_FLING:
- < if (!_show_mouse &&
- ---
- > case JE_FLING: //GSI
- > if (/*!_show_mouse*/0 &&
- 850c930
- < if (!_show_mouse) {
- ---
- > if (/*!_show_mouse*/0) {
- 863c943
- < if (!_show_mouse) {
- ---
- > if (/*!_show_mouse*/0) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement