{"action":"created","issue":{"url":"https://api.github.com/repos/vurtun/nuklear/issues/107","repository_url":"https://api.github.com/repos/vurtun/nuklear","labels_url":"https://api.github.com/repos/vurtun/nuklear/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/vurtun/nuklear/issues/107/comments","events_url":"https://api.github.com/repos/vurtun/nuklear/issues/107/events","html_url":"https://github.com/vurtun/nuklear/issues/107","id":150514213,"number":107,"title":"How to determine if no window/item has focus?","user":{"login":"ands","id":151513,"avatar_url":"https://avatars.githubusercontent.com/u/151513?v=3","gravatar_id":"","url":"https://api.github.com/users/ands","html_url":"https://github.com/ands","followers_url":"https://api.github.com/users/ands/followers","following_url":"https://api.github.com/users/ands/following{/other_user}","gists_url":"https://api.github.com/users/ands/gists{/gist_id}","starred_url":"https://api.github.com/users/ands/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ands/subscriptions","organizations_url":"https://api.github.com/users/ands/orgs","repos_url":"https://api.github.com/users/ands/repos","events_url":"https://api.github.com/users/ands/events{/privacy}","received_events_url":"https://api.github.com/users/ands/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vurtun/nuklear/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-23T03:33:57Z","updated_at":"2016-04-23T20:13:13Z","closed_at":null,"body":"I'm searching for a way to get the behaviour of ImGui::IsAnyItemActive() from dear imgui.\r\nThis function told me whether any item has focus or not.\r\nIf no item has focus, I want my own code to handle mouse/keyboard input.\r\n\r\nI've tried using nk_window_is_any_hovered, but it would return false when using a slider or property and moving the mouse out of the window during an interaction.\r\n\r\nI've tried using nk_window_is_active / ctx->active, but these are always set for/to some window.\r\n\r\nIs there a way to get that behaviour?"},"comment":{"url":"https://api.github.com/repos/vurtun/nuklear/issues/comments/213822440","html_url":"https://github.com/vurtun/nuklear/issues/107#issuecomment-213822440","issue_url":"https://api.github.com/repos/vurtun/nuklear/issues/107","id":213822440,"user":{"login":"vurtun","id":8057201,"avatar_url":"https://avatars.githubusercontent.com/u/8057201?v=3","gravatar_id":"","url":"https://api.github.com/users/vurtun","html_url":"https://github.com/vurtun","followers_url":"https://api.github.com/users/vurtun/followers","following_url":"https://api.github.com/users/vurtun/following{/other_user}","gists_url":"https://api.github.com/users/vurtun/gists{/gist_id}","starred_url":"https://api.github.com/users/vurtun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vurtun/subscriptions","organizations_url":"https://api.github.com/users/vurtun/orgs","repos_url":"https://api.github.com/users/vurtun/repos","events_url":"https://api.github.com/users/vurtun/events{/privacy}","received_events_url":"https://api.github.com/users/vurtun/received_events","type":"User","site_admin":false},"created_at":"2016-04-23T20:13:13Z","updated_at":"2016-04-23T20:13:13Z","body":"Sadly this has nothing to do with me not wanting it. But with tradeoffs. Either a.) I make this library hard to use for everyone by requiring an unique ID for every widget that will be unique even after changes to the UI or b.) make it a harder for those who want to use it with gamepad/keyboard which already requires different widgets (see gamepad demo). The good thing for the gamepad demo I made was that the UI was static in the sense that nothing was added or removed while running. In these cases it is enough to just have a growing ID. Nuklear's API is not magic even though I try my best to make it so that as many things implicitly just work. But some things have to come from somewhere and I try to make the general case easier."}}