[Scummvm-git-logs] scummvm master -> b8e1aa66e5199f05fb2ccd8317c4646cd3c6a53b

ccawley2011 ccawley2011 at gmail.com
Wed Apr 1 20:11:23 UTC 2020


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
b8e1aa66e5 ANDROID: Ignore input from the volume buttons


Commit: b8e1aa66e5199f05fb2ccd8317c4646cd3c6a53b
    https://github.com/scummvm/scummvm/commit/b8e1aa66e5199f05fb2ccd8317c4646cd3c6a53b
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2020-04-01T21:10:00+01:00

Commit Message:
ANDROID: Ignore input from the volume buttons

Changed paths:
    backends/platform/android/org/scummvm/scummvm/ScummVMEvents.java


diff --git a/backends/platform/android/org/scummvm/scummvm/ScummVMEvents.java b/backends/platform/android/org/scummvm/scummvm/ScummVMEvents.java
index acf6df8d43..70f42b984c 100644
--- a/backends/platform/android/org/scummvm/scummvm/ScummVMEvents.java
+++ b/backends/platform/android/org/scummvm/scummvm/ScummVMEvents.java
@@ -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:




More information about the Scummvm-git-logs mailing list