How to check if a swipe was made up, down, left or right on mobile devices

· SDK: 29
· NDK: r21e
· JDK: 11
· Haxe: 4.2.4
· Openfl: 9.2.1
· Flixel: 5.2.2
· Lime: 8.0.1

(Just making a port of my Friday Night Funkin’ Psych Engine mod on android for fun)
The repository I took for the build: GitHub - LEVIREALXD2/FNF-IHIR-ENGINE-ANDROID: Well, here it is. (Android)
Original source code Friday Night Funkin’: GitHub - FunkinCrew/Funkin: A rhythm game made with HaxeFlixel

I’m trying to make the game check in real time whether I’m swiping and it swipes me to the specified setting. That is, if I swipe up, then the change selection occurs down, and if down, then up (As stupid as it may sound). I tried to do it through FlxG.swipes but I found out the problem that the swipe is not detected in real time, but only when it is done. And also the swipe seems to run my command, like a thousand times or something like that. I mean I want to do the same thing as in FreeplayState original Friday Night Funkin’


Discovered a ‘Flixel’ developer

How many people use “Flixel” for development?

Um… If you mean what I trying create, then I work alone.I don’t have a single person who understands Android stuff, much less haxe. I study on my own, but there are difficulties.

I am also self-taught, it is indeed difficult

Got it, good luck to you =)

I use this library with externs:

Also, I found this a while back. Detect a finger swipe through JavaScript on the iPhone and Android - Stack Overflow