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
Interaction with 3D scene? #1051
Comments
check WantCaptureKeyboard and WantCaptureMouse those will tell you when an imgui widget wants input focus and there are methods to turn it off the next frame for when you want to drag the mouse behind a window. |
This is mostly under your control. You can decide that when clicking a view you'd stop giving a mouse position to ImGui until another action is performed (e.g. pressing escape, or right mouse-click). ImGui will use the mouse input position if it is provided. So maybe your application needs a flag to track whether inputs are passed to imgui or not? Pseudo code,
|
@acterhd Shall we keep this issue open? |
I'm in thinking... |
Closing this until you have a specific related query. |
Hello. I have in my experimental renderer (based on ray tracing) basic camera control. How to cross-connect camera control (mouse and keyboard) with GUI?
Yes, in simple situation may be bind with callback, but in this situation needs additional hit test (on cursor in gui).
The text was updated successfully, but these errors were encountered: