fix crash: do not automap pause-resume to y button

This commit is contained in:
amwatson 2024-02-19 16:45:27 -06:00
parent d0a85182c2
commit 5e2abb90f7
2 changed files with 5 additions and 1 deletions

View file

@ -9,7 +9,7 @@ import org.citra.citra_emu.display.ScreenAdjustmentUtil
class HotkeyUtility(private val screenAdjustmentUtil: ScreenAdjustmentUtil) {
val hotkeyButtons = Hotkey.entries.map { it.button }
val hotkeyButtons = org.citra.citra_emu.vr.utils.VRUtils.Hotkey.entries.map { it.button }
fun handleHotkey(bindedButton: Int): Boolean {
if(hotkeyButtons.contains(bindedButton)) {

View file

@ -21,6 +21,10 @@ object VRUtils {
}
enum class Hotkey(val button: Int) {
CLOSE_GAME(org.citra.citra_emu.features.hotkeys.Hotkey.CLOSE_GAME.button);
}
val hotKeys = listOf(
Settings.HOTKEY_CLOSE_GAME
)