Skip to content
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

How can I pass user input to imgui #2030

Closed
expvintl opened this issue Aug 19, 2018 · 19 comments
Closed

How can I pass user input to imgui #2030

expvintl opened this issue Aug 19, 2018 · 19 comments
Labels

Comments

@expvintl
Copy link

Hello!,I tried to use Imgui in NDK OpenGl, but I couldn't click.

@ice1000
Copy link
Contributor

ice1000 commented Aug 19, 2018

Please give a more accurate description of what have you done, your imgui version, your detailed debugging environment, your devices, your backends, etc.

Thank you.

@ice1000
Copy link
Contributor

ice1000 commented Aug 19, 2018

我可以帮你翻译。

I can help you translate

@expvintl
Copy link
Author

expvintl commented Aug 19, 2018

@ice1000 我用的安卓NDK中的opengl绘制了一个正方形,并加了imgui能显示,但是在安卓中无法点击。比如像按钮,拖动条之类的都无法点击。点起来没有任何反应

@expvintl
Copy link
Author

@ice1000 我没其他机子测试,只有安卓7.0的机子。Imgui版本是1.52

@ice1000
Copy link
Contributor

ice1000 commented Aug 19, 2018

需要传入用户数据的,你看下 #421 是怎么做的

@ice1000
Copy link
Contributor

ice1000 commented Aug 19, 2018

就是你用户的输入需要手动传入,其他平台都封装好了,安卓还没有,所以你看不到点击

@ice1000
Copy link
Contributor

ice1000 commented Aug 19, 2018

#1735 #1200

@ice1000
Copy link
Contributor

ice1000 commented Aug 19, 2018

把标题改成『How can I pass user input to imgui』好一点

@expvintl
Copy link
Author

@ice1000 好的谢谢,但是移动也没有反应,关闭也没有,就跟没点一样

@ice1000
Copy link
Contributor

ice1000 commented Aug 19, 2018

肯定的,因为用户输入没传给imgui,它就没法做任何响应啊。相关代码有人已经写好了(已经写了三遍以上了),你去面向复制粘贴编程一下应该就可以了

@expvintl
Copy link
Author

@ice1000 好的,谢谢你

@ice1000
Copy link
Contributor

ice1000 commented Aug 19, 2018

你还没改标题

@expvintl expvintl changed the title Why can't imgui in Android 7.0 click? How can I pass user input to imgui Aug 19, 2018
@expvintl
Copy link
Author

@ice1000 好了

@ice1000
Copy link
Contributor

ice1000 commented Aug 19, 2018

Good。问题解决了记得来close掉

@ice1000
Copy link
Contributor

ice1000 commented Aug 19, 2018

顺便po下你解决问题的代码就好了

@ice1000
Copy link
Contributor

ice1000 commented Aug 19, 2018

This guy doesn't know that imgui requires passing user input manually. I've told him so and he's doing it right now.

@expvintl
Copy link
Author

@ice1000 我看了一下,没有讲详细如何处理

@expvintl
Copy link
Author

@ice1000 算了

@ice1000
Copy link
Contributor

ice1000 commented Aug 19, 2018

This guy gives up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants