godot swipe detector
A script to detect directional swipes on the screen.
Usage example
func _ready():
add_child(SwipeDetector.new())
func _input(event):
if event is InputEventSwipe:
print(event.direction)
A script to detect directional swipes on the screen.
func _ready():
add_child(SwipeDetector.new())
func _input(event):
if event is InputEventSwipe:
print(event.direction)
npm i @bendn/swipe-detector
2
1.1.5
MIT
3.15 kB
5