mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-08-29 21:41:18 +00:00
Merge pull request #1 from Hacce87/Hacce87-patch-1
Update InputHandler.kt
This commit is contained in:
commit
a92542d56c
|
@ -69,9 +69,6 @@ object InputHandler {
|
||||||
|
|
||||||
private fun getPlayerNumber(index: Int, deviceId: Int = -1): Int {
|
private fun getPlayerNumber(index: Int, deviceId: Int = -1): Int {
|
||||||
var deviceIndex = index
|
var deviceIndex = index
|
||||||
if (deviceId != -1) {
|
|
||||||
deviceIndex = controllerIds[deviceId] ?: 0
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO: Joycons are handled as different controllers. Find a way to merge them.
|
// TODO: Joycons are handled as different controllers. Find a way to merge them.
|
||||||
return when (deviceIndex) {
|
return when (deviceIndex) {
|
||||||
|
|
Loading…
Reference in a new issue