forked from Mirrorlandia_minetest/irrlicht
Android: import back button patch
This commit is contained in:
parent
dfe077134d
commit
97631c39fe
@ -509,7 +509,7 @@ s32 CIrrDeviceAndroid::handleInput(android_app* app, AInputEvent* androidEvent)
|
||||
event.KeyInput.Char = 0;
|
||||
}
|
||||
|
||||
device->postEventFromUser(event);
|
||||
status = device->postEventFromUser(event);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
@ -566,7 +566,7 @@ void CIrrDeviceAndroid::createKeyMap()
|
||||
KeyMap[1] = KEY_LBUTTON; // AKEYCODE_SOFT_LEFT
|
||||
KeyMap[2] = KEY_RBUTTON; // AKEYCODE_SOFT_RIGHT
|
||||
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[6] = KEY_UNKNOWN; // AKEYCODE_ENDCALL
|
||||
KeyMap[7] = KEY_KEY_0; // AKEYCODE_0
|
||||
|
Loading…
Reference in New Issue
Block a user