If I were to make an app like this word finder gam...
# compose
n
If I were to make an app like this word finder game in Compose, what gesture detector would I need to use? As it stands I can get each letter using the onpress gesture detector , but I guess this is more of a swipe gesture. Is this possible in Compose or would I need to use a games engine? See picture in thread.
👀 1
a
Modifier.pointerInput
gives you access to all of the input events you'll need for this
👍 2
n
This is what I am currently using:
Copy code
.pointerInput(Unit) {
    detectTapGestures(
        onPress = { println(randomLetter)}
    )
},
it works but only for one letter at a time...
a
Check out how
detectTapGestures
is implemented, you can use
awaitPointerInputScope
to get individual down/move/up events during the different dispatch phases
n
Thanks, I will check that out! 😊