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

node double click event #190

Open
championAI opened this issue Oct 23, 2023 · 1 comment
Open

node double click event #190

championAI opened this issue Oct 23, 2023 · 1 comment

Comments

@championAI
Copy link

championAI commented Oct 23, 2023

hi , is it possible to catch a double click?

@navyenzo
Copy link

hi , is it possible to catch a double click?

yes, it's as simple as this:

// Double clicking on the node will make it collapse/expand
if(ImGui::IsMouseDoubleClicked(ImGuiMouseButton_Left))
{
show_node_contents_ = !show_node_contents_;
}

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

No branches or pull requests

2 participants