Merge pull request #1 from Hacce87/Hacce87-patch-1

Update InputHandler.kt
pull/28/head
Hacce87 2024-02-04 12:59:06 +07:00 committed by GitHub
commit a92542d56c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 3 deletions

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