Skip to content

Commit

Permalink
Allow gamepad selection to work from persisted bindings
Browse files Browse the repository at this point in the history
This fixes the issue that adding gamepad settings for external controller mappings  revert to mouse on load/scroll
  • Loading branch information
hackcasual authored Mar 1, 2024
1 parent 550f62b commit 3ddbfd4
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 3ddbfd4

Please sign in to comment.