mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-06 22:25:41 +12:00
Android: Fix device volume not working (#663)
This commit is contained in:
parent
8909e6e7ea
commit
67d4bd484a
1 changed files with 4 additions and 0 deletions
|
@ -152,6 +152,10 @@ public class GameActivity extends BaseActivity implements EmulatorCallback, Sens
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean dispatchKeyEvent(KeyEvent event) {
|
public boolean dispatchKeyEvent(KeyEvent event) {
|
||||||
|
if (event.getKeyCode() == KeyEvent.KEYCODE_VOLUME_UP || event.getKeyCode() == KeyEvent.KEYCODE_VOLUME_DOWN) {
|
||||||
|
return super.dispatchKeyEvent(event);
|
||||||
|
}
|
||||||
|
|
||||||
if ((!drawerFragment.isOpened()) && InputHandler.processKeyEvent(event)) {
|
if ((!drawerFragment.isOpened()) && InputHandler.processKeyEvent(event)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue