Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove unused code from InputConfigFragment. This was for when the op…
…tion to draw onscreen controls was in this menu instead of video preferences.
  • Loading branch information
lioncash committed Aug 22, 2013
1 parent 20e82ec commit 97bfa63
Showing 1 changed file with 5 additions and 27 deletions.
Expand Up @@ -90,33 +90,11 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle sa
public void onItemClick(AdapterView<?> parent, View view, int position, long id)
{
InputConfigItem o = adapter.getItem(position);
switch(position)
{
case 0: // On screen controls
String newBind;
if (o.getBind().equals("True"))
{
Toast.makeText(m_activity, getString(R.string.not_drawing_onscreen_controls), Toast.LENGTH_SHORT).show();
newBind = "False";
}
else
{
Toast.makeText(m_activity, getString(R.string.drawing_onscreen_controls), Toast.LENGTH_SHORT).show();
newBind = "True";
}
adapter.remove(o);
o.setBind(newBind);
adapter.insert(o, position);
break;

default: // gamepad controls

Toast.makeText(m_activity, getString(R.string.press_button_to_config, o.getName()), Toast.LENGTH_SHORT).show();
configPosition = position;
Configuring = true;
firstEvent = true;
break;
}

Toast.makeText(m_activity, getString(R.string.press_button_to_config, o.getName()), Toast.LENGTH_SHORT).show();
configPosition = position;
Configuring = true;
firstEvent = true;
}
};

Expand Down

0 comments on commit 97bfa63

Please sign in to comment.