Skip to content

Commit

Permalink
Fix c buttons not having a default binding
Browse files Browse the repository at this point in the history
  • Loading branch information
Waterdish committed Nov 24, 2024
1 parent cb13784 commit 4ee3f23
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
19 changes: 19 additions & 0 deletions Android/app/src/main/java/com/dishii/mm/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,25 @@ private void setupFiles(){
}
}

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);
Expand Down
4 changes: 2 additions & 2 deletions Android/app/src/main/res/layout/touchcontrol_overlay.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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"/>
Expand All @@ -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"/>
Expand Down

0 comments on commit 4ee3f23

Please sign in to comment.