Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ Extra Vanilla functionality can be accessed through these keyboard shortcuts. On
| Function | Key |
| --------------------- | ------------- |
| Start/Stop Recording | F5 |
| Toggle Fullscreen | F11 |
| Take Screenshot | F12 |
| Disconnect | Esc |

Expand Down
101 changes: 101 additions & 0 deletions gui/assets/tex/fullscreen_icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions gui/menu/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,11 @@ void vpi_menu_action(vui_context_t *vui, vpi_extra_action_t action)
}
break;
}
case VPI_ACTION_TOGGLE_FULLSCREEN:
{
vpi_config.fullscreen = !vpi_config.fullscreen;
vpi_config_save();
vui_set_fullscreen(vui, vpi_config.fullscreen);
}
}
}
1 change: 1 addition & 0 deletions gui/menu/menu.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ typedef enum {
VPI_ACTION_SCREENSHOT,
VPI_ACTION_TOGGLE_RECORDING,
VPI_ACTION_DISCONNECT,
VPI_ACTION_TOGGLE_FULLSCREEN,
} vpi_extra_action_t;

void vpi_menu_init(vui_context_t *vui);
Expand Down
2 changes: 2 additions & 0 deletions gui/menu/menu_gamepad.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ void vpi_menu_key_bindings_more(vui_context_t *vui, void *v)
// Special Action Buttons
create_key_bind_button(vui, VPI_ACTION_TOGGLE_RECORDING, img_x + img_w + padding, img_y + padding + (img_w * btn_offset), btn_w, btn_h, layer);
vui_image_create(vui, img_x, img_y + padding + (img_h * btn_offset++), img_w, img_h, "recording_icon.svg", layer);
create_key_bind_button(vui, VPI_ACTION_TOGGLE_FULLSCREEN, img_x + img_w + padding, img_y + padding + (img_w * btn_offset), btn_w, btn_h, layer);
vui_image_create(vui, img_x, img_y + padding + (img_h * btn_offset++), img_w, img_h, "fullscreen_icon.svg", layer);
create_key_bind_button(vui, VPI_ACTION_SCREENSHOT, img_x + img_w + padding, img_y + padding + (img_w * btn_offset), btn_w, btn_h, layer);
vui_image_create(vui, img_x, img_y + padding + (img_h * btn_offset++), img_w, img_h, "screenshot_icon.svg", layer);
}
Expand Down
1 change: 1 addition & 0 deletions gui/ui/ui_sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ void init_gamepad(vui_context_t *ctx)
ctx->default_key_map[SDL_SCANCODE_J] = VANILLA_BTN_ZR;
ctx->default_key_map[SDL_SCANCODE_F5] = VPI_ACTION_TOGGLE_RECORDING;
ctx->default_key_map[SDL_SCANCODE_F12] = VPI_ACTION_SCREENSHOT;
ctx->default_key_map[SDL_SCANCODE_F11] = VPI_ACTION_TOGGLE_FULLSCREEN;
ctx->default_key_map[SDL_SCANCODE_ESCAPE] = VPI_ACTION_DISCONNECT;
}

Expand Down
Loading