Advertisement
Guest User

Untitled

a guest
Jan 12th, 2013
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.46 KB | None | 0 0
  1. diff -r residualvm/backends/platform/android/events.cpp residualvm-gillou/backends/platform/android/events.cpp
  2. 580c580
  3. <   case JE_DPAD:
  4. ---
  5. >   case JE_DPAD: //GSI
  6. 582a583,663
  7. >           switch (arg1) {
  8. >           case JACTION_DOWN:
  9. >               e.type = Common::EVENT_KEYDOWN;
  10. >               break;
  11. >           case JACTION_UP:
  12. >               e.type = Common::EVENT_KEYUP;
  13. >               break;
  14. >           default:
  15. >               LOGE("unhandled jaction on dpad key: %d", arg1);
  16. >               return;
  17. >           }
  18. >
  19. >           e.kbd.keycode = Common::KEYCODE_UP;
  20. >
  21. >           lockMutex(_event_queue_lock);
  22. >           _event_queue.push(e);
  23. >           unlockMutex(_event_queue_lock);
  24. >           return;
  25. >
  26. >       case JKEYCODE_DPAD_DOWN:
  27. >           switch (arg1) {
  28. >           case JACTION_DOWN:
  29. >               e.type = Common::EVENT_KEYDOWN;
  30. >               break;
  31. >           case JACTION_UP:
  32. >               e.type = Common::EVENT_KEYUP;
  33. >               break;
  34. >           default:
  35. >               LOGE("unhandled jaction on dpad key: %d", arg1);
  36. >               return;
  37. >           }
  38. >
  39. >           e.kbd.keycode = Common::KEYCODE_DOWN;
  40. >
  41. >           lockMutex(_event_queue_lock);
  42. >           _event_queue.push(e);
  43. >           unlockMutex(_event_queue_lock);
  44. >           return;
  45. >
  46. >       case JKEYCODE_DPAD_LEFT:
  47. >           switch (arg1) {
  48. >           case JACTION_DOWN:
  49. >               e.type = Common::EVENT_KEYDOWN;
  50. >               break;
  51. >           case JACTION_UP:
  52. >               e.type = Common::EVENT_KEYUP;
  53. >               break;
  54. >           default:
  55. >               LOGE("unhandled jaction on dpad key: %d", arg1);
  56. >               return;
  57. >           }
  58. >
  59. >           e.kbd.keycode = Common::KEYCODE_LEFT;
  60. >
  61. >           lockMutex(_event_queue_lock);
  62. >           _event_queue.push(e);
  63. >           unlockMutex(_event_queue_lock);
  64. >           return;
  65. >  
  66. >       case JKEYCODE_DPAD_RIGHT:
  67. >           switch (arg1) {
  68. >           case JACTION_DOWN:
  69. >               e.type = Common::EVENT_KEYDOWN;
  70. >               break;
  71. >           case JACTION_UP:
  72. >               e.type = Common::EVENT_KEYUP;
  73. >               break;
  74. >           default:
  75. >               LOGE("unhandled jaction on dpad key: %d", arg1);
  76. >               return;
  77. >           }
  78. >
  79. >           e.kbd.keycode = Common::KEYCODE_RIGHT;
  80. >
  81. >           lockMutex(_event_queue_lock);
  82. >           _event_queue.push(e);
  83. >           unlockMutex(_event_queue_lock);
  84. >           return;
  85. >
  86. >       /*switch (arg2) {
  87. >       case JKEYCODE_DPAD_UP:
  88. 641,642c722
  89. <
  90. <           return;
  91. ---
  92. >           return;*/
  93. 678,679c758,759
  94. <   case JE_LONG:
  95. <       if (!_show_mouse &&
  96. ---
  97. >   case JE_LONG: //GSI
  98. >       if (/*!_show_mouse*/0 &&
  99. 694,695c774,775
  100. <   case JE_FLING:
  101. <       if (!_show_mouse &&
  102. ---
  103. >   case JE_FLING: //GSI
  104. >       if (/*!_show_mouse*/0 &&
  105. 850c930
  106. <           if (!_show_mouse) {
  107. ---
  108. >           if (/*!_show_mouse*/0) {
  109. 863c943
  110. <           if (!_show_mouse) {
  111. ---
  112. >           if (/*!_show_mouse*/0) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement