|
|
@ -222,6 +222,8 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
|
|
|
|
|
|
|
|
|
|
|
|
popup.menuInflater.inflate(R.menu.menu_overlay_options, popup.menu)
|
|
|
|
popup.menuInflater.inflate(R.menu.menu_overlay_options, popup.menu)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
popup.menu.findItem(R.id.menu_rel_stick_center).isChecked = EmulationMenuSettings.joystickRelCenter
|
|
|
|
|
|
|
|
|
|
|
|
popup.setOnMenuItemClickListener {
|
|
|
|
popup.setOnMenuItemClickListener {
|
|
|
|
when (it.itemId) {
|
|
|
|
when (it.itemId) {
|
|
|
|
R.id.menu_edit_overlay -> {
|
|
|
|
R.id.menu_edit_overlay -> {
|
|
|
@ -259,6 +261,11 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
|
|
|
|
|
|
|
|
|
|
|
|
true
|
|
|
|
true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
R.id.menu_rel_stick_center -> {
|
|
|
|
|
|
|
|
it.isChecked = !it.isChecked
|
|
|
|
|
|
|
|
EmulationMenuSettings.joystickRelCenter = it.isChecked
|
|
|
|
|
|
|
|
true
|
|
|
|
|
|
|
|
}
|
|
|
|
R.id.menu_reset_overlay -> {
|
|
|
|
R.id.menu_reset_overlay -> {
|
|
|
|
binding.drawerLayout.close()
|
|
|
|
binding.drawerLayout.close()
|
|
|
|
resetInputOverlay()
|
|
|
|
resetInputOverlay()
|
|
|
|