Charles Lombardo
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
5 additions and
6 deletions
-
src/android/app/src/main/java/org/yuzu/yuzu_emu/overlay/InputOverlay.kt
|
|
|
@ -28,6 +28,7 @@ import org.yuzu.yuzu_emu.features.input.NativeInput |
|
|
|
import org.yuzu.yuzu_emu.R |
|
|
|
import org.yuzu.yuzu_emu.features.input.model.NativeAnalog |
|
|
|
import org.yuzu.yuzu_emu.features.input.model.NativeButton |
|
|
|
import org.yuzu.yuzu_emu.features.input.model.NpadStyleIndex |
|
|
|
import org.yuzu.yuzu_emu.features.settings.model.BooleanSetting |
|
|
|
import org.yuzu.yuzu_emu.features.settings.model.IntSetting |
|
|
|
import org.yuzu.yuzu_emu.overlay.model.OverlayControl |
|
|
|
@ -99,12 +100,10 @@ class InputOverlay(context: Context, attrs: AttributeSet?) : |
|
|
|
} |
|
|
|
|
|
|
|
var shouldUpdateView = false |
|
|
|
val playerIndex = |
|
|
|
if (NativeInput.isHandheldOnly()) { |
|
|
|
NativeInput.ConsoleDevice |
|
|
|
} else { |
|
|
|
NativeInput.Player1Device |
|
|
|
} |
|
|
|
val playerIndex = when (NativeInput.getStyleIndex(0)) { |
|
|
|
NpadStyleIndex.Handheld -> 8 |
|
|
|
else -> 0 |
|
|
|
} |
|
|
|
|
|
|
|
for (button in overlayButtons) { |
|
|
|
if (!button.updateStatus(event)) { |
|
|
|
|