-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IMGUI touch listener #6552
Comments
You should use You can also use or refer to our backend imgui_impl_android.cpp. |
the button still stops responding after showing the window 2-3 times. native imgi button. the code has not changed. |
What can be wrong? I tried to put static text and remove elements to exclude their influence. It's strange that button works 1 time, and then it doesn't ( ~ sometimes. ) those. the first time I show the window. the button works well and I can close it. The second time when I show the window, it doesn't close on the button (condition doesn't work. I'm logging) in 80% of cases. The window cannot be closed. Clicking in any places, any number of clicks does not activate the button in any way. I also tried to add |
upd. |
also after changing the simple
to
according to your advice, I often get crash |
@ocornut But the problem with the collapse is relevant. I don’t understand what I could do wrong there, because you just need to pass 2 numbers
|
@ocornut i use imgi in ndk, armv7 abi |
imgui ver - last. (1.89.6)
i am using imgui in ndk android (touch control). how do i properly add clicks to imgui? I have my own function that catches OnTouchEvent clicks with Type push, pop, move
I am currently doing this:
in push
io.MouseDown[0] = true;
in pop
io.MouseDown[0] = false;
everywhere
But sometimes my buttons just don't click
Sorry, I think this thread already exists, but I couldn't find it.
full code touch
here is my code with the button, maybe the problem is in it
The text was updated successfully, but these errors were encountered: