mirror of
https://github.com/amwatson/CitraVR.git
synced 2024-09-20 03:11:40 +02:00
fix crash: do not automap pause-resume to y button
This commit is contained in:
parent
d0a85182c2
commit
5e2abb90f7
2 changed files with 5 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue