Android: import back button patch

This commit is contained in:
sfan5 2021-03-07 02:09:32 +01:00
parent dfe077134d
commit 97631c39fe

@ -509,7 +509,7 @@ s32 CIrrDeviceAndroid::handleInput(android_app* app, AInputEvent* androidEvent)
event.KeyInput.Char = 0; event.KeyInput.Char = 0;
} }
device->postEventFromUser(event); status = device->postEventFromUser(event);
} }
break; break;
default: default:
@ -566,7 +566,7 @@ void CIrrDeviceAndroid::createKeyMap()
KeyMap[1] = KEY_LBUTTON; // AKEYCODE_SOFT_LEFT KeyMap[1] = KEY_LBUTTON; // AKEYCODE_SOFT_LEFT
KeyMap[2] = KEY_RBUTTON; // AKEYCODE_SOFT_RIGHT KeyMap[2] = KEY_RBUTTON; // AKEYCODE_SOFT_RIGHT
KeyMap[3] = KEY_HOME; // AKEYCODE_HOME KeyMap[3] = KEY_HOME; // AKEYCODE_HOME
KeyMap[4] = KEY_BACK; // AKEYCODE_BACK KeyMap[4] = KEY_CANCEL; // AKEYCODE_BACK
KeyMap[5] = KEY_UNKNOWN; // AKEYCODE_CALL KeyMap[5] = KEY_UNKNOWN; // AKEYCODE_CALL
KeyMap[6] = KEY_UNKNOWN; // AKEYCODE_ENDCALL KeyMap[6] = KEY_UNKNOWN; // AKEYCODE_ENDCALL
KeyMap[7] = KEY_KEY_0; // AKEYCODE_0 KeyMap[7] = KEY_KEY_0; // AKEYCODE_0