maze-generator-assets-lib/stick/joystick.gd
2025-02-28 23:05:41 +01:00

8 lines
160 B
GDScript

extends Node2D
var posVector: Vector2
@export var deadzone = 15
func _ready() -> void:
if not DisplayServer.is_touchscreen_available():
set_process(false)