summaryrefslogtreecommitdiff
path: root/Source/Android
diff options
context:
space:
mode:
authorRyan Houdek <Sonicadvance1@gmail.com>2015-02-24 06:25:10 -0600
committerRyan Houdek <Sonicadvance1@gmail.com>2015-02-24 06:25:10 -0600
commit7d5a558f31ee8eca26b2b5ee4775f07ffdb8b8bc (patch)
treeee3c9ccfd8a89bea2fbf8d32bbca7df5909d7a4b /Source/Android
parent4e5d115bf0fcff7e78b93868adb38a6726b1ee3e (diff)
parent29fc52cfa17dcc7327c1a081918721cd7cfcf40b (diff)
Merge pull request #2105 from Sonicadvance1/android_stop_eating_buttons
[Android] Stop eating button events we don't handle.
Diffstat (limited to 'Source/Android')
-rw-r--r--Source/Android/src/org/dolphinemu/dolphinemu/NativeLibrary.java4
-rw-r--r--Source/Android/src/org/dolphinemu/dolphinemu/emulation/EmulationActivity.java4
2 files changed, 5 insertions, 3 deletions
diff --git a/Source/Android/src/org/dolphinemu/dolphinemu/NativeLibrary.java b/Source/Android/src/org/dolphinemu/dolphinemu/NativeLibrary.java
index f3317c9e8c..027d476095 100644
--- a/Source/Android/src/org/dolphinemu/dolphinemu/NativeLibrary.java
+++ b/Source/Android/src/org/dolphinemu/dolphinemu/NativeLibrary.java
@@ -69,8 +69,10 @@ public final class NativeLibrary
* @param Device The input descriptor of the gamepad.
* @param Button Key code identifying which button was pressed.
* @param Action Mask identifying which action is happing (button pressed down, or button released).
+ *
+ * @return If we handled the button press.
*/
- public static native void onGamePadEvent(String Device, int Button, int Action);
+ public static native boolean onGamePadEvent(String Device, int Button, int Action);
/**
* Handles gamepad movement events.
diff --git a/Source/Android/src/org/dolphinemu/dolphinemu/emulation/EmulationActivity.java b/Source/Android/src/org/dolphinemu/dolphinemu/emulation/EmulationActivity.java
index 41c523ed68..7775e2124c 100644
--- a/Source/Android/src/org/dolphinemu/dolphinemu/emulation/EmulationActivity.java
+++ b/Source/Android/src/org/dolphinemu/dolphinemu/emulation/EmulationActivity.java
@@ -285,8 +285,8 @@ public final class EmulationActivity extends Activity
return false;
}
InputDevice input = event.getDevice();
- NativeLibrary.onGamePadEvent(InputConfigFragment.getInputDesc(input), event.getKeyCode(), action);
- return true;
+ boolean handled = NativeLibrary.onGamePadEvent(InputConfigFragment.getInputDesc(input), event.getKeyCode(), action);
+ return handled;
}
return false;
}