summaryrefslogtreecommitdiffstats
path: root/src/android
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2024-01-02 16:44:26 +0100
committerGitHub <noreply@github.com>2024-01-02 16:44:26 +0100
commitcec91c5fd6986539dbb6b3be7665361bff980dfb (patch)
treed124e2761df58d16aca793f2360c9c7ae042057f /src/android
parentMerge pull request #12552 from t895/i-am-a-dummy (diff)
parentandroid: Fix dpad position saving (diff)
downloadyuzu-cec91c5fd6986539dbb6b3be7665361bff980dfb.tar
yuzu-cec91c5fd6986539dbb6b3be7665361bff980dfb.tar.gz
yuzu-cec91c5fd6986539dbb6b3be7665361bff980dfb.tar.bz2
yuzu-cec91c5fd6986539dbb6b3be7665361bff980dfb.tar.lz
yuzu-cec91c5fd6986539dbb6b3be7665361bff980dfb.tar.xz
yuzu-cec91c5fd6986539dbb6b3be7665361bff980dfb.tar.zst
yuzu-cec91c5fd6986539dbb6b3be7665361bff980dfb.zip
Diffstat (limited to 'src/android')
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/overlay/InputOverlay.kt3
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
import org.yuzu.yuzu_emu.R
import org.yuzu.yuzu_emu.features.settings.model.BooleanSetting
import org.yuzu.yuzu_emu.features.settings.model.IntSetting
-import org.yuzu.yuzu_emu.features.settings.model.Settings
import org.yuzu.yuzu_emu.overlay.model.OverlayControl
import org.yuzu.yuzu_emu.overlay.model.OverlayControlData
import org.yuzu.yuzu_emu.overlay.model.OverlayLayout
@@ -302,7 +301,7 @@ class InputOverlay(context: Context, attrs: AttributeSet?) :
MotionEvent.ACTION_POINTER_UP -> if (dpadBeingConfigured === dpad) {
// Persist button position by saving new place.
saveControlPosition(
- Settings.PREF_BUTTON_DPAD,
+ OverlayControl.COMBINED_DPAD.id,
dpadBeingConfigured!!.bounds.centerX(),
dpadBeingConfigured!!.bounds.centerY(),
layout