mirror of
https://github.com/brunodev85/winlator.git
synced 2026-10-22 22:12:11 +03:00
Allow gamepad selection to work from persisted bindings
This fixes the issue that adding gamepad settings for external controller mappings revert to mouse on load/scroll
This commit is contained in:
1 parent
550f62b1a6
commit
3ddbfd4f79
1 file changed
+1
-1
@@ -218,7 +218,7 @@ public class ExternalControllerBindingsActivity extends AppCompatActivity {
|
||||
@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
|
||||
|
||||
Reference in new issue
Block a user