@bendn/swipe-detector

godot swipe detector


Keywords
godot, godot-engine, swipe
License
MIT
Install
npm install @bendn/swipe-detector@1.1.0

Documentation

godot swipe detector

version package Buy me a coffee

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)