mirror of
https://git.tardis.systems/mirrors/yuzu
synced 2025-08-11 04:40:27 +02:00
Update InputHandler.kt
Fix multiple gamepad tah conneced become 1 plaeyr[android]
This commit is contained in:
parent
c10e720ba9
commit
7353fc2c23
@ -69,9 +69,6 @@ object InputHandler {
|
||||
|
||||
private fun getPlayerNumber(index: Int, deviceId: Int = -1): Int {
|
||||
var deviceIndex = index
|
||||
if (deviceId != -1) {
|
||||
deviceIndex = controllerIds[deviceId] ?: 0
|
||||
}
|
||||
|
||||
// TODO: Joycons are handled as different controllers. Find a way to merge them.
|
||||
return when (deviceIndex) {
|
||||
|
Loading…
Reference in New Issue
Block a user