mirror of
https://github.com/gwenhael-le-moine/x49gp.git
synced 2024-12-25 21:58:49 +01:00
add reset pin on keyboard key F12
This commit is contained in:
parent
cd78bd8127
commit
0f69d29cf6
1 changed files with 7 additions and 4 deletions
11
ui.c
11
ui.c
|
@ -1629,10 +1629,8 @@ x49gp_ui_key_event(GtkWidget *widget, GdkEventKey *event, gpointer user_data)
|
|||
case GDK_Y: case GDK_y: index = 29; break;
|
||||
case GDK_Z: case GDK_z:
|
||||
case GDK_slash: case GDK_KP_Divide: index = 30; break;
|
||||
#ifdef __APPLE__
|
||||
case GDK_Tab: index = 31; break;
|
||||
#else
|
||||
case GDK_Tab: index = 31; break;
|
||||
case GDK_Tab: index = 31; break;
|
||||
#ifndef __APPLE__
|
||||
case GDK_Alt_L: case GDK_Alt_R:
|
||||
case GDK_Meta_L: case GDK_Meta_R:
|
||||
case GDK_Mode_switch: index = 31; break;
|
||||
|
@ -1659,6 +1657,11 @@ x49gp_ui_key_event(GtkWidget *widget, GdkEventKey *event, gpointer user_data)
|
|||
case GDK_KP_Decimal: index = 48; break;
|
||||
case GDK_space: case GDK_KP_Space: index = 49; break;
|
||||
case GDK_Return: case GDK_KP_Enter: index = 50; break;
|
||||
|
||||
case GDK_F12:
|
||||
x49gp_modules_reset(x49gp, 0);
|
||||
cpu_reset(x49gp->env);
|
||||
return FALSE;
|
||||
default:
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue