mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-01 10:13:38 +00:00
Android: update IR defaults
This commit is contained in:
parent
dc51b95313
commit
f6225e9694
@ -19,7 +19,7 @@ IR/Forward = `Axis 116`
|
|||||||
IR/Backward = `Axis 117`
|
IR/Backward = `Axis 117`
|
||||||
IR/Hide = `Button 118`
|
IR/Hide = `Button 118`
|
||||||
IR/Height = 50
|
IR/Height = 50
|
||||||
IR/Width = 30
|
IR/Width = 50
|
||||||
IR/Center = 50
|
IR/Center = 50
|
||||||
Swing/Up = `Axis 120`
|
Swing/Up = `Axis 120`
|
||||||
Swing/Down = `Axis 121`
|
Swing/Down = `Axis 121`
|
||||||
@ -158,7 +158,7 @@ IR/Forward = `Axis 116`
|
|||||||
IR/Backward = `Axis 117`
|
IR/Backward = `Axis 117`
|
||||||
IR/Hide = `Button 118`
|
IR/Hide = `Button 118`
|
||||||
IR/Height = 50
|
IR/Height = 50
|
||||||
IR/Width = 30
|
IR/Width = 50
|
||||||
IR/Center = 50
|
IR/Center = 50
|
||||||
Swing/Up = `Axis 120`
|
Swing/Up = `Axis 120`
|
||||||
Swing/Down = `Axis 121`
|
Swing/Down = `Axis 121`
|
||||||
@ -297,7 +297,7 @@ IR/Forward = `Axis 116`
|
|||||||
IR/Backward = `Axis 117`
|
IR/Backward = `Axis 117`
|
||||||
IR/Hide = `Button 118`
|
IR/Hide = `Button 118`
|
||||||
IR/Height = 50
|
IR/Height = 50
|
||||||
IR/Width = 30
|
IR/Width = 50
|
||||||
IR/Center = 50
|
IR/Center = 50
|
||||||
Swing/Up = `Axis 120`
|
Swing/Up = `Axis 120`
|
||||||
Swing/Down = `Axis 121`
|
Swing/Down = `Axis 121`
|
||||||
@ -436,7 +436,7 @@ IR/Forward = `Axis 116`
|
|||||||
IR/Backward = `Axis 117`
|
IR/Backward = `Axis 117`
|
||||||
IR/Hide = `Button 118`
|
IR/Hide = `Button 118`
|
||||||
IR/Height = 50
|
IR/Height = 50
|
||||||
IR/Width = 30
|
IR/Width = 50
|
||||||
IR/Center = 50
|
IR/Center = 50
|
||||||
Swing/Up = `Axis 120`
|
Swing/Up = `Axis 120`
|
||||||
Swing/Down = `Axis 121`
|
Swing/Down = `Axis 121`
|
||||||
|
@ -19,7 +19,7 @@ IR/Forward = `Axis 116`
|
|||||||
IR/Backward = `Axis 117`
|
IR/Backward = `Axis 117`
|
||||||
IR/Hide = `Button 118`
|
IR/Hide = `Button 118`
|
||||||
IR/Height = 50
|
IR/Height = 50
|
||||||
IR/Width = 30
|
IR/Width = 50
|
||||||
IR/Center = 50
|
IR/Center = 50
|
||||||
Swing/Up = `Axis 120`
|
Swing/Up = `Axis 120`
|
||||||
Swing/Down = `Axis 121`
|
Swing/Down = `Axis 121`
|
||||||
|
@ -34,6 +34,7 @@ public final class DirectoryInitialization
|
|||||||
"org.dolphinemu.dolphinemu.DIRECTORY_INITIALIZATION";
|
"org.dolphinemu.dolphinemu.DIRECTORY_INITIALIZATION";
|
||||||
|
|
||||||
public static final String EXTRA_STATE = "directoryState";
|
public static final String EXTRA_STATE = "directoryState";
|
||||||
|
private static final Integer WiimoteNewVersion = 2;
|
||||||
private static volatile DirectoryInitializationState directoryState = null;
|
private static volatile DirectoryInitializationState directoryState = null;
|
||||||
private static String userPath;
|
private static String userPath;
|
||||||
private static String internalPath;
|
private static String internalPath;
|
||||||
@ -145,7 +146,20 @@ public final class DirectoryInitialization
|
|||||||
createWiimoteProfileDirectory(profileDirectory);
|
createWiimoteProfileDirectory(profileDirectory);
|
||||||
|
|
||||||
copyAsset("GCPadNew.ini", new File(configDirectory, "GCPadNew.ini"), true, context);
|
copyAsset("GCPadNew.ini", new File(configDirectory, "GCPadNew.ini"), true, context);
|
||||||
|
|
||||||
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||||
|
if (prefs.getInt("WiimoteNewVersion", 0) != WiimoteNewVersion)
|
||||||
|
{
|
||||||
|
copyAsset("WiimoteNew.ini", new File(configDirectory, "WiimoteNew.ini"), true, context);
|
||||||
|
SharedPreferences.Editor sPrefsEditor = prefs.edit();
|
||||||
|
sPrefsEditor.putInt("WiimoteNewVersion", WiimoteNewVersion);
|
||||||
|
sPrefsEditor.apply();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
copyAsset("WiimoteNew.ini", new File(configDirectory, "WiimoteNew.ini"), false, context);
|
copyAsset("WiimoteNew.ini", new File(configDirectory, "WiimoteNew.ini"), false, context);
|
||||||
|
}
|
||||||
|
|
||||||
copyAsset("WiimoteProfile.ini", new File(profileDirectory, "WiimoteProfile.ini"), true,
|
copyAsset("WiimoteProfile.ini", new File(profileDirectory, "WiimoteProfile.ini"), true,
|
||||||
context);
|
context);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user