mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-27 21:26:09 +00:00
(Android) Input - now handles volume up/down and back buttons
This commit is contained in:
parent
0aa08c3b46
commit
94ccdd627b
@ -122,6 +122,9 @@ static int32_t engine_handle_input(struct android_app* app, AInputEvent* event)
|
||||
if(action == AKEY_EVENT_ACTION_UP)
|
||||
state[i].state &= ~(keycode_lut[keycode]);
|
||||
|
||||
if(keycode == AKEYCODE_BACK || keycode == AKEYCODE_VOLUME_UP || keycode == AKEYCODE_VOLUME_DOWN)
|
||||
return 0;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user