mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-11-26 00:07:50 +00:00
android: Fix dpad position saving
Was using the wrong key previously
This commit is contained in:
parent
29b983398c
commit
466cdeb8a0
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue