https://github.com/bend-n/swipe-detector
swipe detector
https://github.com/bend-n/swipe-detector
Last synced: 15 days ago
JSON representation
swipe detector
- Host: GitHub
- URL: https://github.com/bend-n/swipe-detector
- Owner: bend-n
- License: mit
- Created: 2022-08-18T08:20:59.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-18T10:51:56.000Z (over 2 years ago)
- Last Synced: 2024-10-16T08:32:48.185Z (6 months ago)
- Language: GDScript
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# godot swipe detector
[](https://godotengine.org "Made with godot")
[](https://www.npmjs.com/package/@bendn/swipe-detector)![]()
A script to detect directional swipes on the screen.
## Usage example
```gdscript
func _ready():
add_child(SwipeDetector.new())func _input(event):
if event is InputEventSwipe:
print(event.direction)
```