ANDROID: Ignore input from the volume buttons

This commit is contained in:
Cameron Cawley 2020-04-01 21:10:00 +01:00
parent d91793e87e
commit b8e1aa66e5

View File

@ -184,6 +184,10 @@ public class ScummVMEvents implements
int type;
switch (keyCode) {
case KeyEvent.KEYCODE_VOLUME_DOWN:
case KeyEvent.KEYCODE_VOLUME_UP:
// We ignore these so that they can be handled by Android.
return false;
case KeyEvent.KEYCODE_DPAD_UP:
case KeyEvent.KEYCODE_DPAD_DOWN:
case KeyEvent.KEYCODE_DPAD_LEFT: