Update InputHandler.kt

Muliple gamepad that conneced always become player 1
This commit is contained in:
Hacce87 2024-02-04 12:57:48 +07:00 committed by GitHub
parent 039a84338a
commit 6ef513aeb4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {