[Android] Fix drawing on screen control setting being derpy at times.
This commit is contained in:
parent
06b98225e7
commit
ae395639b0
|
@ -66,7 +66,7 @@ public class InputConfigActivity extends ListActivity {
|
||||||
{
|
{
|
||||||
case 0: // On screen controls
|
case 0: // On screen controls
|
||||||
String newBind;
|
String newBind;
|
||||||
if (o.getBind() == "True")
|
if (o.getBind().equals("True"))
|
||||||
{
|
{
|
||||||
Toast.makeText(this, "Not Drawing on screen controls", Toast.LENGTH_SHORT).show();
|
Toast.makeText(this, "Not Drawing on screen controls", Toast.LENGTH_SHORT).show();
|
||||||
newBind = "False";
|
newBind = "False";
|
||||||
|
@ -111,9 +111,7 @@ public class InputConfigActivity extends ListActivity {
|
||||||
if (firstEvent)
|
if (firstEvent)
|
||||||
{
|
{
|
||||||
m_values.clear();
|
m_values.clear();
|
||||||
for (int a = 0; a < motions.size(); ++a)
|
for (InputDevice.MotionRange range : motions) {
|
||||||
{
|
|
||||||
InputDevice.MotionRange range = motions.get(a);
|
|
||||||
m_values.add(event.getAxisValue(range.getAxis()));
|
m_values.add(event.getAxisValue(range.getAxis()));
|
||||||
}
|
}
|
||||||
firstEvent = false;
|
firstEvent = false;
|
||||||
|
|
Loading…
Reference in New Issue