mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-14 03:15:46 -04:00
Android: Default to digital controller type for mapping port 1
This commit is contained in:
@ -163,7 +163,8 @@ public class ControllerMappingActivity extends AppCompatActivity {
|
||||
@Override
|
||||
public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
|
||||
final SharedPreferences sp = getPreferenceManager().getSharedPreferences();
|
||||
String controllerType = sp.getString(String.format("Controller%d/Type", controllerIndex), "None");
|
||||
final String defaultControllerType = controllerIndex == 0 ? "DigitalController" : "None";
|
||||
String controllerType = sp.getString(String.format("Controller%d/Type", controllerIndex), defaultControllerType);
|
||||
String[] controllerButtons = AndroidHostInterface.getControllerButtonNames(controllerType);
|
||||
String[] axisButtons = AndroidHostInterface.getControllerAxisNames(controllerType);
|
||||
|
||||
|
Reference in New Issue
Block a user