mirror of
https://github.com/izzy2lost/2ship2harkinian-Android.git
synced 2026-06-19 01:20:08 -07:00
Fix c buttons not having a default binding
This commit is contained in:
@@ -149,6 +149,25 @@ public class MainActivity extends SDLActivity{
|
||||
}
|
||||
}
|
||||
|
||||
File configFile = new File(getExternalFilesDir(null), "2ship2harkinian.json");
|
||||
if (!configFile.exists()) {
|
||||
try {
|
||||
InputStream in = getAssets().open("2ship2harkinian.json");
|
||||
OutputStream out = new FileOutputStream(configFile);
|
||||
|
||||
byte[] buffer = new byte[1024];
|
||||
int read;
|
||||
while ((read = in.read(buffer)) != -1) {
|
||||
out.write(buffer, 0, read);
|
||||
}
|
||||
|
||||
in.close();
|
||||
out.close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private native void nativeHandleSelectedFile(String filePath);
|
||||
|
||||
@@ -142,7 +142,7 @@
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:background="@drawable/ic_trigger_button_left"
|
||||
android:text="LB"
|
||||
android:text="L"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
android:textColor="#25FFFFFF"/>
|
||||
@@ -154,7 +154,7 @@
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:background="@drawable/ic_trigger_button_right"
|
||||
android:text="RB"
|
||||
android:text="R"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
android:textColor="#25FFFFFF"/>
|
||||
|
||||
Reference in New Issue
Block a user