swipe detector
Diffstat (limited to 'Test.gd')
-rw-r--r--Test.gd10
1 files changed, 10 insertions, 0 deletions
diff --git a/Test.gd b/Test.gd
new file mode 100644
index 0000000..fd0a3a6
--- /dev/null
+++ b/Test.gd
@@ -0,0 +1,10 @@
+extends Node
+
+
+func _ready():
+ add_child(SwipeDetector.new())
+
+
+func _input(event):
+ if event is InputEventSwipe:
+ print(event.direction)