From a6c7a92c313d7992d3ba22bf0579c6328d9ecae4 Mon Sep 17 00:00:00 2001 From: sorgelig Date: Thu, 29 Dec 2016 00:20:47 +0800 Subject: [PATCH] LShift+LCtrl+LAlt+RAlt - hard reset (load core.rbf). --- user_io.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/user_io.c b/user_io.c index 9c9db65..c789edd 100644 --- a/user_io.c +++ b/user_io.c @@ -1399,7 +1399,11 @@ unsigned short keycode(unsigned char in) { void check_reset(unsigned char modifiers, char useAlt) { - if(modifiers == (useAlt ? 0x45 : 0x89)) // ctrl - alt - alt / ctrl - amiga - amiga + if(useAlt && (modifiers == 0x47)) // lshift - lctrl - lalt - ralt + { + *AT91C_RSTC_RCR = 0xA5 << 24 | AT91C_RSTC_PERRST | AT91C_RSTC_PROCRST | AT91C_RSTC_EXTRST; // reset + } + else if(modifiers == (useAlt ? 0x45 : 0x89)) // lctrl - lalt - ralt / lctrl - lamiga - ramiga { switch(core_type) {