0 votes

Hi!

How would you implement something like "toggle fullscreen by pressing F4" in your game GLOBALLY (meaning you should be able to toggle fullscreen mode no matter at which point/menu you are in the game)?
I know how to code it on a scene by scene basis. But when the scene changes i have to code it all over again.

Would a singleton like "Global_Inputs" or something be a a good option?

Godot version 3.2.3
in Engine by (78 points)
edited by

1 Answer

+3 votes
by (889 points)

Alright, this confirms my suspicion then. Thanks

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.