Add a shortcut key to toggle the UI when fullscreen#6481
Conversation
|
Works fine, except our keyboard emulation and Bus/PS/2 mouse emulation does an extraneous check for fullscreen that will not work properly if the UI is on while fullscreen. It should be accounted for. Everything else seems fine. |
|
OK this was adjusted to account for those fullscreen checks in those hardware files. The variable was also converted to a C int to match the way the "fullscreen" flag is implemented. |
|
Undefined variables in the SDL builds: |
|
Thanks, I hadn't realized that was a thing. I thought it was all QT. I moved it to the root 86box.c. |
Please, can you add another option to the menu? Automatically capture mouse in fullscreen mode when the machine is started with the -F parameter (when the machine is started immediately in fullscreen mode). |
Summary
I love to work fullscreen. However, I hate going windowed just to insert a disk or cd rom. This PR adds the shortcut key of CTRL+ALT+PGDN to toggle the UI while in full screen. When it's toggled, the mouse is released (if it was captured) and the shortcut then hides the UI again, restoring the mouse to its previous state.
I'll be 100% transparent, I had Copilot write this code using Claude Sonnet 4.5. I'm a C# dev, but I rarely dive into C++. So I'm able to follow the code and understand it, debug, etc. But I just don't generally write it.
Checklist
References
Nothing