gd: added menu template

This commit is contained in:
2025-06-10 18:46:20 +02:00
parent f9a6c42b14
commit c554e24b01
421 changed files with 12371 additions and 2 deletions

View File

@ -0,0 +1,9 @@
class_name CaptureMouse
extends Control
## Control node that captures the mouse for games that require it.
##
## Used for games that use the mouse to move the camera (ex. FPS or third-person shooters).
func _gui_input(event):
if event is InputEventMouseButton and Input.mouse_mode != Input.MOUSE_MODE_CAPTURED:
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)