irrlicht-back_button.patch 720 B

12345678910111213141516171819
  1. --- irrlicht/source/Irrlicht/Android/CIrrDeviceAndroid.cpp 2014-06-03 20:56:21.289559503 +0200
  2. +++ irrlicht/source/Irrlicht/Android/CIrrDeviceAndroid.cpp.orig 2014-06-03 20:57:39.281556749 +0200
  3. @@ -423,6 +423,7 @@
  4. }
  5. device->postEventFromUser(event);
  6. + status = 1;
  7. }
  8. break;
  9. default:
  10. @@ -479,7 +480,7 @@
  11. KeyMap[1] = KEY_LBUTTON; // AKEYCODE_SOFT_LEFT
  12. KeyMap[2] = KEY_RBUTTON; // AKEYCODE_SOFT_RIGHT
  13. KeyMap[3] = KEY_HOME; // AKEYCODE_HOME
  14. - KeyMap[4] = KEY_BACK; // AKEYCODE_BACK
  15. + KeyMap[4] = KEY_CANCEL; // AKEYCODE_BACK
  16. KeyMap[5] = KEY_UNKNOWN; // AKEYCODE_CALL
  17. KeyMap[6] = KEY_UNKNOWN; // AKEYCODE_ENDCALL
  18. KeyMap[7] = KEY_KEY_0; // AKEYCODE_0