Skip to content

Feature: Add functionality to toggle fullscreen with F11#346

Merged
itsmattkc merged 5 commits intovanilla-wiiu:masterfrom
VoxelTek:f11-fullscreen
Feb 16, 2026
Merged

Feature: Add functionality to toggle fullscreen with F11#346
itsmattkc merged 5 commits intovanilla-wiiu:masterfrom
VoxelTek:f11-fullscreen

Conversation

@VoxelTek
Copy link
Contributor

Allows toggling fullscreen in Vanilla by using F11 key.

2026-02-13.15-36-42.mp4

Known issue: if toggling fullscreen with F11 in the Settings menu, the option for Full Screen does not update until the Settings page is reloaded. This could be fixed by including ui.h in menu.c and adding the line vui_button_update_checked(vui, button, vpi_config.fullscreen);.

Closes #345

Copy link

@pedropaulosuzuki pedropaulosuzuki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably a good idea to put F11 shortcut before F12 shortcut

gui/ui/ui_sdl.c Outdated
key_map[SDL_SCANCODE_F5] = VPI_ACTION_TOGGLE_RECORDING;
key_map[SDL_SCANCODE_F12] = VPI_ACTION_SCREENSHOT;
key_map[SDL_SCANCODE_ESCAPE] = VPI_ACTION_DISCONNECT;
key_map[SDL_SCANCODE_F11] = VPI_ACTION_TOGGLE_FULLSCREEN;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably a good idea to put F11 shortcut before F12 shortcut

Copy link
Contributor Author

@VoxelTek VoxelTek Feb 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, it's not really relevant whatsoever what order they're in, no end users are going to be seeing this anyway. Additionally, this should match the order in the enum

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, it's not really relevant whatsoever what order they're in, no end users are going to be seeing this anyway.

My point was not exactly for end users, but for code organization.

Additionally, this should match the order in the enum.

I see, then it makes more sense to keep the order as-is.

@itsmattkc
Copy link
Contributor

Now that we have a key remapping system, can you add an entry for this to menu_gamepad.c

@VoxelTek
Copy link
Contributor Author

VoxelTek commented Feb 16, 2026

Now that we have a key remapping system, can you add an entry for this to menu_gamepad.c

@itsmattkc How's this?
image

Not quite sure why the full-screen icon isn't being anti-aliased in the same way the screenshot icon is, maybe a weird side effect of how svgs are displayed? Don't know how to fix it, unfortunately.

@itsmattkc
Copy link
Contributor

LGTM, thanks

@itsmattkc itsmattkc merged commit 9e11d69 into vanilla-wiiu:master Feb 16, 2026
2 of 7 checks passed
@VoxelTek VoxelTek deleted the f11-fullscreen branch February 16, 2026 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Add F11 as a fullscreen keybind

3 participants