@bendn/swipe-detector

1.1.5 • Public • Published

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)

Package Sidebar

Install

npm i @bendn/swipe-detector

Weekly Downloads

2

Version

1.1.5

License

MIT

Unpacked Size

3.15 kB

Total Files

5

Last publish

Collaborators

  • bendn