keysc: bind SHIFT+7+3+AC/ON to abort() for un-freeze attempts

This commit is contained in:
Lephe 2023-04-01 23:24:55 +02:00
parent eb49f0258d
commit 82258b9f89
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 9 additions and 0 deletions

View File

@ -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;
}