mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 11:35:54 +00:00
[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.
This commit is contained in:
parent
8ca3ed13de
commit
d4840565a9
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue