maze-generator-assets-lib/stick/joystick.gd

9 lines
160 B
GDScript3
Raw Normal View History

2025-02-28 17:13:53 +01:00
extends Node2D
var posVector: Vector2
@export var deadzone = 15
func _ready() -> void:
2025-02-28 23:05:41 +01:00
if not DisplayServer.is_touchscreen_available():
set_process(false)