R
R
ratatyq2017-03-24 18:38:45
Android
ratatyq, 2017-03-24 18:38:45

How to handle clicks on android sensor?

Hello, I can’t understand how to handle clicking on the screen in android using openGl, so that not only could I understand whether a person clicked on the screen or not, but also that it would be possible to understand whether the drawn object was clicked on or not, like this can be implemented?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2017-03-24
@GavriKos

Get the coordinates of the click, and go through all the objects sorted by depth and check if these coordinates fall into each object.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question