So I am currently trying to develop a game using HaxeFlixel. I would like to have a keyboard shortcut such as “Alt + Enter” to switch the game to fullscreen mode.
Trouble is that it seems that either OpenFL or HaxeFlixel has this feature built-in, but it doesn’t seem to work right. I’ve commented out my custom code that switches to fullscreen when “Alt + Enter” is pressed. But when I press that shortcut, it still attempts to switch to fullscreen. But the problem is that it constantly switches back and forth while the Enter key is pressed, and whether you get fullscreen or not is entirely a function of when you release the Enter key.
Again, I’m not sure if this is an OpenFL issue or a Flixel issue, but if someone knows how to correct it I’d appreciate the help. Ideally I’d use the native functionality, but if that’s not working right I’d like to be able to disable the native functionality and just use my custom logic to flip it to fullscreen. But I can’t seem to figure out how to do that either.
I’m targeting Linux, by the way, if that helps. Thanks for any help you can provide!