单击IMGUI按钮时,如何防止点击背景
How do I prevent clicking background when I click the IMGUI button
(e.g. I click the translate button and also click the background)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查IMGUI是否要使用
imgui :: getio()。wantcapturemouse
捕获鼠标。如果确实这样做,就不会让事件进一步传播。imgui常见问题: q:我如何确定是否将鼠标/键盘派遣到亲爱的imgui或我的应用程序?
Check whether ImGui wants to capture the mouse click using
ImGui::GetIO().WantCaptureMouse
. If it does then don't let the event propagate further.ImGui FAQ: Q: How can I tell whether to dispatch mouse/keyboard to Dear ImGui or my application?