mirror of
https://github.com/gwenhael-le-moine/x49gp.git
synced 2025-01-13 08:01:35 +01:00
use F7 or F10 to quit (like saturnng and x48ng)
This commit is contained in:
parent
8408b3b5d7
commit
730271d6a7
1 changed files with 6 additions and 0 deletions
6
src/ui.c
6
src/ui.c
|
@ -2556,6 +2556,12 @@ x49gp_ui_key_event(GtkWidget *widget, GdkEventKey *event, gpointer user_data)
|
||||||
case GDK_KEY_ssharp: index = 30; break;
|
case GDK_KEY_ssharp: index = 30; break;
|
||||||
case GDK_KEY_numbersign: index = 35; break;
|
case GDK_KEY_numbersign: index = 35; break;
|
||||||
|
|
||||||
|
case GDK_KEY_F7:
|
||||||
|
case GDK_KEY_F10:
|
||||||
|
x49gp->arm_exit = 1;
|
||||||
|
cpu_exit(x49gp->env);
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
case GDK_KEY_F12:
|
case GDK_KEY_F12:
|
||||||
switch (event->type) {
|
switch (event->type) {
|
||||||
case GDK_KEY_PRESS:
|
case GDK_KEY_PRESS:
|
||||||
|
|
Loading…
Reference in a new issue