mirror of
https://github.com/gwenhael-le-moine/x49gp.git
synced 2024-12-26 21:58:41 +01:00
fix reset pin behaviour
This commit is contained in:
parent
1f19c8009c
commit
3e6a714ae2
1 changed files with 12 additions and 2 deletions
12
ui.c
12
ui.c
|
@ -1659,8 +1659,18 @@ x49gp_ui_key_event(GtkWidget *widget, GdkEventKey *event, gpointer user_data)
|
|||
case GDK_Return: case GDK_KP_Enter: index = 50; break;
|
||||
|
||||
case GDK_F12:
|
||||
x49gp_modules_reset(x49gp, 0);
|
||||
switch (event->type) {
|
||||
case GDK_KEY_PRESS:
|
||||
x49gp_modules_reset(x49gp, X49GP_RESET_POWER_ON);
|
||||
cpu_reset(x49gp->env);
|
||||
x49gp_set_idle(x49gp, 1);
|
||||
break;
|
||||
case GDK_KEY_RELEASE:
|
||||
x49gp_set_idle(x49gp, 0);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return FALSE;
|
||||
default:
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in a new issue