Assign recenter setting to osc

* Make handheld/pro controller default for controller id 0
This commit is contained in:
Willi Ye 2020-11-21 13:32:02 +01:00 committed by ◱ Mark
parent 71ca46fe1a
commit b12b4df35b
2 changed files with 2 additions and 1 deletions

View File

@ -217,6 +217,7 @@ class EmulationActivity : AppCompatActivity(), SurfaceHolder.Callback, View.OnTo
on_screen_controller_view.isGone = InputManager.controllers[0]!!.type == ControllerType.None || !settings.onScreenControl
on_screen_controller_view.setOnButtonStateChangedListener(::onButtonStateChanged)
on_screen_controller_view.setOnStickStateChangedListener(::onStickStateChanged)
on_screen_controller_view.recenterSticks = settings.onScreenControlRecenterSticks
on_screen_controller_toggle.isGone = on_screen_controller_view.isGone
on_screen_controller_toggle.setOnClickListener {

View File

@ -41,7 +41,7 @@ object InputManager {
}
controllers = hashMapOf(
0 to Controller(0, ControllerType.None),
0 to Controller(0, ControllerType.HandheldProController),
1 to Controller(1, ControllerType.None),
2 to Controller(2, ControllerType.None),
3 to Controller(3, ControllerType.None),