Browse Source
[android] setting to auto hide overlay on controller input (#3127)
[android] setting to auto hide overlay on controller input (#3127)
Setting `HIDE_OVERLAY_ON_CONTROLLER_INPUT` in *Advanced settings → Input Overlay* **Behavior:** - First controller input -> hides overlay - Controller disconnect → shows overlay again - Subsequent controller inputs → ignored (already hidden, so no retrigger needed) - Touch screen → does **not** show overlay (so you can use a controller and touchscreen to interact with games) - Sidebar "Show/Hide controller" button → still works as master toggle **State reset: The "first input" detection resets when:** 1. Controller disconnects 2. Overlay is shown via sidebar button 3. Controller reconnects **Interaction with other settings:** - Requires `SHOW_INPUT_OVERLAY` to be enabled (basicaly a master switch) - Independent from `ENABLE_INPUT_OVERLAY_AUTO_HIDE` (timer-based hide, was already implemented) - When both are enabled, touch-to-show is disabled (controller-hide takes precedence) Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3127 Reviewed-by: Caio Oliveira <caiooliveirafarias0@gmail.com> Reviewed-by: Maufeat <sahyno1996@gmail.com> Co-authored-by: Producdevity <y.gherbi.dev@gmail.com> Co-committed-by: Producdevity <y.gherbi.dev@gmail.com>pull/3174/head
committed by
crueter
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
7 changed files with 115 additions and 12 deletions
-
76src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt
-
1src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/BooleanSetting.kt
-
7src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/SettingsItem.kt
-
1src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsFragmentPresenter.kt
-
35src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt
-
5src/android/app/src/main/jni/android_settings.h
-
2src/android/app/src/main/res/values/strings.xml
Write
Preview
Loading…
Cancel
Save
Reference in new issue