mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-23 13:51:49 +01:00
Assign recenter setting to osc
* Make handheld/pro controller default for controller id 0
This commit is contained in:
parent
71ca46fe1a
commit
b12b4df35b
@ -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 {
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user