summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/io.c b/io.c
index ef19349..109b50f 100644
--- a/io.c
+++ b/io.c
@@ -71,6 +71,7 @@ typedef enum {
UI_PREV_SPEED,
UI_RELEASE_MOUSE,
UI_TOGGLE_FULLSCREEN,
+ UI_SOFT_RESET,
UI_EXIT
} ui_action;
@@ -467,6 +468,9 @@ void handle_binding_up(keybinding * binding)
case UI_TOGGLE_FULLSCREEN:
render_toggle_fullscreen();
break;
+ case UI_SOFT_RESET:
+ current_system->soft_reset(current_system);
+ break;
case UI_EXIT:
current_system->request_exit(current_system);
break;
@@ -637,6 +641,8 @@ int parse_binding_target(char * target, tern_node * padbuttons, tern_node *mouse
*ui_out = UI_RELEASE_MOUSE;
} else if (!strcmp(target + 3, "toggle_fullscreen")) {
*ui_out = UI_TOGGLE_FULLSCREEN;
+ } else if (!strcmp(target + 3, "soft_reset")) {
+ *ui_out = UI_SOFT_RESET;
} else if(!strcmp(target + 3, "exit")) {
*ui_out = UI_EXIT;
} else {