Skip to content

Adds an Alt+F fullscreen toggle#347

Open
luponix wants to merge 2 commits into
overload-development-community:mainfrom
luponix:ready-for-pr/fullscreen-toggle
Open

Adds an Alt+F fullscreen toggle#347
luponix wants to merge 2 commits into
overload-development-community:mainfrom
luponix:ready-for-pr/fullscreen-toggle

Conversation

@luponix

@luponix luponix commented Jul 6, 2026

Copy link
Copy Markdown
Member

Adds a Hotkey class to define new key combinations in.
The background of the Alt+F fullscreen toggle is that on some linux systems overload doesnt get the screen dimensions leading to it starting with an incorrect size and window type every time even when attempting to overrule it with unitys screenwidth and screenheight arguments

@luponix luponix changed the title Adds a Alt+F fullscreen toggle Adds an Alt+F fullscreen toggle Jul 6, 2026
@CCraigen

CCraigen commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

I haven't scanned the code here yet, but I would prefer this becomes Alt-Enter to match the existing (at least on Windows) Unity hotkey for toggling fullscreen. I've recently run into an instance in D3 where there are rather "helpful" program-reserved Alt combinations preventing me from changing weapons while sliding down or trichording using down, or the existing OL problem of being unable to check the scoreboard while doing the same otherwise getting alt-tabbed out. I'd like to avoid more easily-hittable accidental hotkeys if possible.

@luponix

luponix commented Jul 12, 2026

Copy link
Copy Markdown
Member Author

I wanted to do Alt+Enter but unity standalone reserves that key combination.
probably can be worked around but thats the reason i just left it on Alt+F

@luponix

luponix commented Jul 12, 2026

Copy link
Copy Markdown
Member Author

Couple of Ideas to resolve this:

  • Requiring a command line argument for enabling this combination
  • Toggling hotkey functionality pilot wide through the console (persists across restarts)
  • Moving the key to something else
  • Making this and future Hotkeys configurable through a console command -> mapping in a section in .extendedconfig

@CCraigen

Copy link
Copy Markdown
Collaborator

I like the configurable hotkeys idea, that's probably the way to go.

I feel like I'm missing something on the Unity side here. It reserves the key combo for fullscreen toggle, but it doesn't actually work on linux?

@luponix

luponix commented Jul 14, 2026

Copy link
Copy Markdown
Member Author

The default unity toggle fullscreen on alt+enter doesnt seem to do anything on d.cents and my system.
I never traced it to its cause since mitigating it is quite simple.

Adding new Hotkeys is now abstracted away to require just one line to register a function and define the key combination that should trigger it similar to uConsole usage.

Will be useful for quick testing or hidden modes for for example menu rearrangement, reading out coordinates, moving buttons etc.

Configuration of the triggering key combination happens either through uConsole commands or through editing the .extendedconfig of the selected pilot.

hotkey_list
lists all hotkey names and their key bindings

hotkey_bind <name> <combo>
lets you bind a new key combination in the format of Example: alt+f or a+b+c or x+shift+d or a+b

hotkey_unbind <name>
unbinds a hotkey function. corresponding names are exposed through hotkey_list

Hotkeys get updated through GameManager.Update -> can be triggered both during and outside of matches (- not while chatting or having the console open)

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.

2 participants