diff options
| author | lioncash <mathew1900@hotmail.com> | 2013-08-28 08:21:09 -0400 |
|---|---|---|
| committer | lioncash <mathew1900@hotmail.com> | 2013-08-28 08:21:09 -0400 |
| commit | d4840565a9981a2ebab0cf8fb97da64ffa86080c (patch) | |
| tree | 61911baf757c7c951e915e6830a91fecedf67043 /Source/Android/src | |
| parent | 8ca3ed13decd3062e8a509ff46d15fa4eccd086e (diff) | |
[Android] Fix the position of a logcat logging statement. If, for whatever reason, the event parameter is null, then the previous placement would have caused an exception.
Diffstat (limited to 'Source/Android/src')
| -rw-r--r-- | Source/Android/src/org/dolphinemu/dolphinemu/settings/InputConfigFragment.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Android/src/org/dolphinemu/dolphinemu/settings/InputConfigFragment.java b/Source/Android/src/org/dolphinemu/dolphinemu/settings/InputConfigFragment.java index 8914c496b9..cbdb78567c 100644 --- a/Source/Android/src/org/dolphinemu/dolphinemu/settings/InputConfigFragment.java +++ b/Source/Android/src/org/dolphinemu/dolphinemu/settings/InputConfigFragment.java @@ -128,10 +128,11 @@ public final class InputConfigFragment extends PreferenceFragment { public boolean onMotion(MotionEvent event) { - Log.d("InputConfigFragment", "Received motion event: " + event.getAction()); if (event == null || (event.getSource() & InputDevice.SOURCE_CLASS_JOYSTICK) == 0) return false; + Log.d("InputConfigFragment", "Received motion event: " + event.getAction()); + InputDevice input = event.getDevice(); List<InputDevice.MotionRange> motions = input.getMotionRanges(); if (firstEvent) |
