mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-20 09:09:58 +00:00
android: Default to player number 0 if we get an input from an unrecognized controller
This commit is contained in:
parent
48f913b6e7
commit
344162db75
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ 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) {
|
if (deviceId != -1) {
|
||||||
deviceIndex = controllerIds[deviceId]!!
|
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.
|
||||||
|
|
Loading…
Reference in a new issue