Android back button callback added
This commit is contained in:
parent
cfe250979a
commit
45dbde5da5
10 changed files with 39 additions and 6 deletions
|
|
@ -843,6 +843,13 @@ void InputManager::backend_key_down_update(const SDL_KeyboardEvent& e) {
|
|||
auto kPress = e.key;
|
||||
auto kMod = e.mod;
|
||||
|
||||
#ifdef __ANDROID__
|
||||
if(kPress == SDLK_AC_BACK) {
|
||||
main.input_global_back_button_callback();
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
if(kPress != SDLK_LSHIFT && kPress != SDLK_RSHIFT && kPress != SDLK_LCTRL && kPress != SDLK_RCTRL &&
|
||||
kPress != SDLK_LGUI && kPress != SDLK_RGUI &&
|
||||
kPress != SDLK_LALT && kPress != SDLK_RALT) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue