{"action":"created","issue":{"url":"https://api.github.com/repos/ocornut/imgui/issues/703","repository_url":"https://api.github.com/repos/ocornut/imgui","labels_url":"https://api.github.com/repos/ocornut/imgui/issues/703/labels{/name}","comments_url":"https://api.github.com/repos/ocornut/imgui/issues/703/comments","events_url":"https://api.github.com/repos/ocornut/imgui/issues/703/events","html_url":"https://github.com/ocornut/imgui/issues/703","id":160969897,"number":703,"title":"Proper Method For Input Testing","user":{"login":"atom0s","id":1422090,"avatar_url":"https://avatars.githubusercontent.com/u/1422090?v=3","gravatar_id":"","url":"https://api.github.com/users/atom0s","html_url":"https://github.com/atom0s","followers_url":"https://api.github.com/users/atom0s/followers","following_url":"https://api.github.com/users/atom0s/following{/other_user}","gists_url":"https://api.github.com/users/atom0s/gists{/gist_id}","starred_url":"https://api.github.com/users/atom0s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atom0s/subscriptions","organizations_url":"https://api.github.com/users/atom0s/orgs","repos_url":"https://api.github.com/users/atom0s/repos","events_url":"https://api.github.com/users/atom0s/events{/privacy}","received_events_url":"https://api.github.com/users/atom0s/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2016-06-17T20:35:14Z","updated_at":"2016-06-20T19:06:26Z","closed_at":null,"body":"Just recently got into using ImGui and so far love it. However, I do have a question about how input is handled. In the examples, input is just force given to ImGui and not handled in a real-world environment where input going to the actual application / game is still happening. \r\n\r\nWhat would be the proper method of checking if ImGui is going to handle input? I want to be able to allow ImGui have first dibs at input, and if nothing happens in the ui, allow it to continue to the actual application as it should. "},"comment":{"url":"https://api.github.com/repos/ocornut/imgui/issues/comments/227238315","html_url":"https://github.com/ocornut/imgui/issues/703#issuecomment-227238315","issue_url":"https://api.github.com/repos/ocornut/imgui/issues/703","id":227238315,"user":{"login":"atom0s","id":1422090,"avatar_url":"https://avatars.githubusercontent.com/u/1422090?v=3","gravatar_id":"","url":"https://api.github.com/users/atom0s","html_url":"https://github.com/atom0s","followers_url":"https://api.github.com/users/atom0s/followers","following_url":"https://api.github.com/users/atom0s/following{/other_user}","gists_url":"https://api.github.com/users/atom0s/gists{/gist_id}","starred_url":"https://api.github.com/users/atom0s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atom0s/subscriptions","organizations_url":"https://api.github.com/users/atom0s/orgs","repos_url":"https://api.github.com/users/atom0s/repos","events_url":"https://api.github.com/users/atom0s/events{/privacy}","received_events_url":"https://api.github.com/users/atom0s/received_events","type":"User","site_admin":false},"created_at":"2016-06-20T19:06:26Z","updated_at":"2016-06-20T19:06:26Z","body":"> You are correct about the key up events.\r\nHowever ImGui can't possibly convey the information you are expecting in a single boolean nor should it make assumption that your app doesn't want the key up events.\r\n\r\n> If you actually need to ignore the key up event you could maintain an array of bool KeyPressOwnedByImGui[] that you set on keydown based on the WantCaptureKeyboard flag and filter the following keyup based on it.\r\n\r\nI corrected the issue using the edited example above. I'm guessing your email did not get the edited post I made that you quoted. "}}
{"actor":{"display_login":"atom0s"}}