Skip to content

Commit

Permalink
Merge pull request brunodev85#52 from hackcasual/patch-1
Browse files Browse the repository at this point in the history
Allow gamepad selection to work from persisted bindings
  • Loading branch information
brunodev85 authored Mar 1, 2024
2 parents 550f62b + 3ddbfd4 commit 525672e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public void onItemSelected(AdapterView<?> parent, View view, int position, long
@Override
public void onNothingSelected(AdapterView<?> parent) {}
});
holder.bindingType.setSelection(item.getBinding().isKeyboard() ? 0 : 1, false);
holder.bindingType.setSelection(item.getBinding().isKeyboard() ? 0 : item.getBinding().isMouse() : 1 ? 2, false);

holder.binding.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
Expand Down

0 comments on commit 525672e

Please sign in to comment.