mirror of
https://git.planet-casio.com/Lephenixnoir/gint.git
synced 2024-12-28 04:23:36 +01:00
keysc: bind SHIFT+7+3+AC/ON to abort() for un-freeze attempts
This commit is contained in:
parent
eb49f0258d
commit
82258b9f89
1 changed files with 9 additions and 0 deletions
|
@ -15,6 +15,7 @@
|
|||
#include <gint/hardware.h>
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/* Keyboard scan frequency in Hertz. Start with 128 Hz, this frequency *must
|
||||
be high* for the keyboard to work! Reading at low frequencies produces a lot
|
||||
|
@ -62,6 +63,14 @@ static int keysc_tick(void)
|
|||
|
||||
keydev_process_state(&keysc_dev, scan);
|
||||
keydev_tick(&keysc_dev, keysc_scan_us);
|
||||
|
||||
/* Freeze abort key combo: SHIFT+7+3+AC/ON */
|
||||
if(keydown(KEY_SHIFT) && keydown(KEY_7) && keydown(KEY_3) &&
|
||||
keydown(KEY_ACON))
|
||||
{
|
||||
abort();
|
||||
}
|
||||
|
||||
return TIMER_CONTINUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue