trenches/godot/setup_input.gd

7 lines
123 B
GDScript

@tool
extends Node
func _ready() -> void:
if not Engine.is_editor_hint():
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED