diff options
author | t895 <clombardo169@gmail.com> | 2024-02-21 14:17:30 +0100 |
---|---|---|
committer | t895 <clombardo169@gmail.com> | 2024-02-21 14:17:30 +0100 |
commit | 45f450fca5c7fabbb30e0d193d1f4a1be6bd287b (patch) | |
tree | a1c12ef885a07cc0a405e9fd655810d2d8760857 /src | |
parent | android: Enable all controller styles on emulation shutdown (diff) | |
download | yuzu-45f450fca5c7fabbb30e0d193d1f4a1be6bd287b.tar yuzu-45f450fca5c7fabbb30e0d193d1f4a1be6bd287b.tar.gz yuzu-45f450fca5c7fabbb30e0d193d1f4a1be6bd287b.tar.bz2 yuzu-45f450fca5c7fabbb30e0d193d1f4a1be6bd287b.tar.lz yuzu-45f450fca5c7fabbb30e0d193d1f4a1be6bd287b.tar.xz yuzu-45f450fca5c7fabbb30e0d193d1f4a1be6bd287b.tar.zst yuzu-45f450fca5c7fabbb30e0d193d1f4a1be6bd287b.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/features/input/model/PlayerInput.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/input/model/PlayerInput.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/input/model/PlayerInput.kt index d35de80c4..a84ac77a2 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/input/model/PlayerInput.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/input/model/PlayerInput.kt @@ -64,17 +64,17 @@ data class PlayerInput( fun hasMapping(): Boolean { var hasMapping = false buttons.forEach { - if (it != "[empty]") { + if (it != "[empty]" && it.isNotEmpty()) { hasMapping = true } } analogs.forEach { - if (it != "[empty]") { + if (it != "[empty]" && it.isNotEmpty()) { hasMapping = true } } motions.forEach { - if (it != "[empty]") { + if (it != "[empty]" && it.isNotEmpty()) { hasMapping = true } } |