Jump to content

Recommended Posts

Posted

hi guys,

i created an app and placed an imgui inside a window. it works during launch, i'm able to interact with the imgui widget, but the moment i leave the area, it becomes unresponsive. i am able to interact with utlra app kit widgets, but the imgui ones become unresponsive. the app works fine it doesn't crash or anything, and the ultra app kit widgets remain responsive as normal. any ideas why does the imgui window becomes unresponsive after the cursor leaves it?

thanks!

 

ultra_imgui_00.jpg

  • 7 months later...
Posted

it's because your embedding a window inside a window and it looses focus. One way to get around this would be to add the mouse click "left down" so the code would be in the while loop but before the event stuff.

        if (viewport->MouseDown(MOUSE_LEFT)) {
            viewport->Activate();
        }

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...