Skip to content

Commit 797e167

Browse files
authored
pass false instead of null
1 parent a1df220 commit 797e167

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/InputMapActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public boolean dispatchGenericMotionEvent(MotionEvent ev) {
4747

4848
@Override
4949
public boolean dispatchKeyEvent(KeyEvent event) {
50-
return InputHandler.processKeyEvent(event, null);
50+
return InputHandler.processKeyEvent(event, false);
5151
}
5252

5353
private void onInputEvent(InputEvent event) {

src/pandroid/app/src/main/java/com/panda3ds/pandroid/input/InputHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public static boolean processKeyEvent(KeyEvent event, Boolean playing) {
111111
}
112112
String code = KeyEvent.keyCodeToString(event.getKeyCode());
113113

114-
if (playing != null) {
114+
if (playing == true) {
115115
if (InputMap.relative(code) == KeyName.NULL) {
116116
return false;
117117
}

0 commit comments

Comments
 (0)