Godot Version
Godot v4.1.1
Question
I am so frustrated! I am on a Mac, I made the game fullscreen but when I look around enough over 360 degrees, the cursor goes “off screen” although it is fullscreen, and shows the title of the window if I go up with the cursor as I am rotating the camera in Game, it shows the lower bar with all my apps in the bottom of my screen when I take the cursor to the bottom. There is absolutely no one talking about this. I just need the game screen to be locked when full screen and not allow external interactions.
Relevant Code
func _ready() → void:
Input.set_mouse_mode(Input.MOUSE_MODE_HIDDEN) #hides the cursor
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_FULLSCREEN) #fullscreens
I hope someone can help!
UPDATE
Input.MOUSE_MODE_CAPTURED worked!!!