Skip to content

Commit

Permalink
Basic control overlay support
Browse files Browse the repository at this point in the history
  • Loading branch information
airidosas252 authored Nov 13, 2024
1 parent a664316 commit f83ba2a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions app/src/main/res/layout/overlay_controls.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!-- res/layout/overlay_controls.xml -->
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:background="#80000000">

<!-- Example of a simple D-pad style input -->
<Button android:id="@+id/btn_up" android:layout_width="50dp" android:layout_height="50dp" android:text="" />
<LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal">
<Button android:id="@+id/btn_left" android:layout_width="50dp" android:layout_height="50dp" android:text="" />
<Button android:id="@+id/btn_right" android:layout_width="50dp" android:layout_height="50dp" android:text="" />
</LinearLayout>
<Button android:id="@+id/btn_down" android:layout_width="50dp" android:layout_height="50dp" android:text="" />

<!-- Add more buttons as needed -->
<Button android:id="@+id/btn_action" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Action" />
</LinearLayout>

0 comments on commit f83ba2a

Please sign in to comment.