You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any way to get the current mouse position in grid space? I'm trying to add a node under the mouse cursor, but I'm not sure there is currently any way to convert arbitrary screen space coordinates to grid space.
The text was updated successfully, but these errors were encountered:
I do this in my program. First I get the mouse position with ImGui::GetMousePosOnOpeningCurrentPopup(), I'm adding from a popup menu. Then I add the node and after set the position with ImNodes::SetNodeScreenSpacePos(). Hope that helps.
Unfortunately it doesn't help. In order to work with the structure of my software, I need to be able to ask imnodes to translate between screen space and grid space without inserting a node.
Is there any way to get the current mouse position in grid space? I'm trying to add a node under the mouse cursor, but I'm not sure there is currently any way to convert arbitrary screen space coordinates to grid space.
The text was updated successfully, but these errors were encountered: