Removed SDL binding on volume keys so that hardware volume keys can be used to configure the volume.

This commit is contained in:
Xawotihs@gmail.com
2012-04-14 18:10:33 +00:00
parent ec50690a3b
commit 817fb21171

View File

@@ -1072,6 +1072,8 @@ class SDLSurface extends SurfaceView implements SurfaceHolder.Callback,
if (keyCode == KeyEvent.KEYCODE_MENU)
return false;
if (keyCode == KeyEvent.KEYCODE_VOLUME_UP || keyCode == KeyEvent.KEYCODE_VOLUME_DOWN)
return false;
if (event.getAction() == KeyEvent.ACTION_DOWN) {
//Log.d("SDL", "key down: " + keyCode);
SDLActivity.onNativeKeyDown(keyCode);