~thestr4ng3r/chiaki

3a90ef0a658eac2506a17d87b55e084337814765 — Florian Märkl 2 days ago b69bf28
Extend DPad Touch Area on Android
M android/app/src/main/java/com/metallic/chiaki/touchcontrols/DPadView.kt => android/app/src/main/java/com/metallic/chiaki/touchcontrols/DPadView.kt +1 -1
@@ 71,7 71,7 @@ class DPadView @JvmOverloads constructor(
		else
			drawable = dpadIdleDrawable

		drawable?.setBounds(0, 0, width, height)
		drawable?.setBounds(paddingLeft, paddingTop, width - paddingRight, height - paddingBottom)
		//drawable?.alpha = 127
		drawable?.draw(canvas)
	}

M android/app/src/main/res/layout/fragment_controls.xml => android/app/src/main/res/layout/fragment_controls.xml +5 -4
@@ 49,10 49,11 @@

    <com.metallic.chiaki.touchcontrols.DPadView
        android:id="@+id/dpadView"
        android:layout_width="128dp"
        android:layout_height="128dp"
        android:layout_marginLeft="32dp"
        android:layout_marginBottom="32dp"
        android:layout_width="160dp"
        android:layout_height="160dp"
        android:padding="16dp"
        android:layout_marginLeft="16dp"
        android:layout_marginBottom="16dp"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toBottomOf="parent" />