maze-generator-assets-lib/stick/joystick.gd
megamichi 7bb83a1340 init
2025-02-28 17:13:53 +01:00

8 lines
163 B
GDScript

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