I noticed that when enabling full screen in my game.project
on macOS, you’re capturing the display for exclusive use with CGCaptureAllDisplays()
. This way of achieving full screen makes the user unable to Cmd-Tab out of the game and unable to use his secondary screen. The recommended way of doing full screen is by making your NSWindow
borderless, by setting its frame to the bounds of the screen and then calling setPresentationOptions
to hide the menu bar and the dock. Another option would be to use the post-Lion fullscreen API (which I don’t really think is suitable for a game TBH).
EDIT: I just noticed it also makes my mouse cursor dissapear