Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Android] Only dismiss the input dialog when an input is registered. …
…Before it would dismiss upon the first event. Fixes a bug where control sticks wouldn't register because of the AlertDialog closing immediately after the "if (firstEvent)" branch.
  • Loading branch information
lioncash committed Aug 26, 2013
1 parent ba27436 commit e12c66b
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -156,17 +156,18 @@ public boolean onMotion(MotionEvent event)
String bindStr = "Device '" + InputConfigFragment.getInputDesc(input) + "'-Axis " + range.getAxis() + "-";
NativeLibrary.SetConfig("Dolphin.ini", "Android", pref.getKey(), bindStr);
pref.setSummary(bindStr);
dialog.dismiss();
}
else if (m_values.get(a) < (event.getAxisValue(range.getAxis()) - 0.5f))
{
String bindStr = "Device '" + InputConfigFragment.getInputDesc(input) + "'-Axis " + range.getAxis() + "+";
NativeLibrary.SetConfig("Dolphin.ini", "Android", pref.getKey(), bindStr);
pref.setSummary(bindStr);
dialog.dismiss();
}
}
}

dialog.dismiss();
return true;
}
});
Expand Down

0 comments on commit e12c66b

Please sign in to comment.