diff options
Diffstat (limited to 'res/layout/gamepad.xml')
-rw-r--r-- | res/layout/gamepad.xml | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/res/layout/gamepad.xml b/res/layout/gamepad.xml new file mode 100644 index 0000000..bfdaacd --- /dev/null +++ b/res/layout/gamepad.xml @@ -0,0 +1,40 @@ +<merge + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + xmlns:app="http://schemas.android.com/apk/res-auto" + > + <pw.cloudef.rpg.Button + app:inputBackground="@drawable/action_usual" + app:buttonCenterDistance="0" + app:deadZone="0" + android:id="@+id/hider" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="top|right" + android:alpha=".5" + /> + <com.andretietz.android.controller.ActionView + android:id="@+id/viewDirection" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + app:buttonCenterDistance="0.45" + app:inputBackground="@drawable/direction_background" + app:button1_enabled="@drawable/direction_right_usual" + app:button1_pressed="@drawable/direction_right_pressed" + app:button2_enabled="@drawable/direction_down_usual" + app:button2_pressed="@drawable/direction_down_pressed" + app:button3_enabled="@drawable/direction_left_usual" + app:button3_pressed="@drawable/direction_left_pressed" + app:button4_enabled="@drawable/direction_up_usual" + app:button4_pressed="@drawable/direction_up_pressed" + android:layout_gravity="bottom|left" + android:alpha=".5" + /> + <com.andretietz.android.controller.ActionView + android:id="@+id/viewAction" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="bottom|right" + android:alpha=".5" + /> +</merge> |