gabryon99 / postcat-kodee

Postcat Kodee is a 3D game written in Kotlin, using the Godot/Kotlin JVM bindings.
MIT License
46 stars 1 forks source link

Use angular approach to detect swipe direction #2

Closed chippmann closed 5 months ago

chippmann commented 5 months ago

This improves the swipe feel by detecting the overall swipe angle instead of a threshold approach which helps with accessibility as not all users swipe in (almost) perfect horizontal or vertical directions. This approach is way more lenient to diagonal swipes.