diff options
| author | 2024-01-02 10:44:26 -0500 | |
|---|---|---|
| committer | 2024-01-02 10:44:26 -0500 | |
| commit | cec91c5fd6986539dbb6b3be7665361bff980dfb (patch) | |
| tree | d124e2761df58d16aca793f2360c9c7ae042057f /src | |
| parent | Merge pull request #12552 from t895/i-am-a-dummy (diff) | |
| parent | android: Fix dpad position saving (diff) | |
| download | yuzu-cec91c5fd6986539dbb6b3be7665361bff980dfb.tar.gz yuzu-cec91c5fd6986539dbb6b3be7665361bff980dfb.tar.xz yuzu-cec91c5fd6986539dbb6b3be7665361bff980dfb.zip | |
Merge pull request #12551 from t895/dpad-save-fix
android: Fix dpad position saving
Diffstat (limited to '')
| -rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/overlay/InputOverlay.kt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/overlay/InputOverlay.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/overlay/InputOverlay.kt index bb69b8bd5..c87486c90 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/overlay/InputOverlay.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/overlay/InputOverlay.kt | |||
| @@ -30,7 +30,6 @@ import org.yuzu.yuzu_emu.NativeLibrary.StickType | |||
| 30 | import org.yuzu.yuzu_emu.R | 30 | import org.yuzu.yuzu_emu.R |
| 31 | import org.yuzu.yuzu_emu.features.settings.model.BooleanSetting | 31 | import org.yuzu.yuzu_emu.features.settings.model.BooleanSetting |
| 32 | import org.yuzu.yuzu_emu.features.settings.model.IntSetting | 32 | import org.yuzu.yuzu_emu.features.settings.model.IntSetting |
| 33 | import org.yuzu.yuzu_emu.features.settings.model.Settings | ||
| 34 | import org.yuzu.yuzu_emu.overlay.model.OverlayControl | 33 | import org.yuzu.yuzu_emu.overlay.model.OverlayControl |
| 35 | import org.yuzu.yuzu_emu.overlay.model.OverlayControlData | 34 | import org.yuzu.yuzu_emu.overlay.model.OverlayControlData |
| 36 | import org.yuzu.yuzu_emu.overlay.model.OverlayLayout | 35 | import org.yuzu.yuzu_emu.overlay.model.OverlayLayout |
| @@ -302,7 +301,7 @@ class InputOverlay(context: Context, attrs: AttributeSet?) : | |||
| 302 | MotionEvent.ACTION_POINTER_UP -> if (dpadBeingConfigured === dpad) { | 301 | MotionEvent.ACTION_POINTER_UP -> if (dpadBeingConfigured === dpad) { |
| 303 | // Persist button position by saving new place. | 302 | // Persist button position by saving new place. |
| 304 | saveControlPosition( | 303 | saveControlPosition( |
| 305 | Settings.PREF_BUTTON_DPAD, | 304 | OverlayControl.COMBINED_DPAD.id, |
| 306 | dpadBeingConfigured!!.bounds.centerX(), | 305 | dpadBeingConfigured!!.bounds.centerX(), |
| 307 | dpadBeingConfigured!!.bounds.centerY(), | 306 | dpadBeingConfigured!!.bounds.centerY(), |
| 308 | layout | 307 | layout |