{"action":"created","issue":{"url":"https://api.github.com/repos/simbody/simbody/issues/549","repository_url":"https://api.github.com/repos/simbody/simbody","labels_url":"https://api.github.com/repos/simbody/simbody/issues/549/labels{/name}","comments_url":"https://api.github.com/repos/simbody/simbody/issues/549/comments","events_url":"https://api.github.com/repos/simbody/simbody/issues/549/events","html_url":"https://github.com/simbody/simbody/issues/549","id":208801925,"number":549,"title":"Return from waitFromKeyHit() if simbody-visualizer is closed.","user":{"login":"chrisdembia","id":846001,"avatar_url":"https://avatars.githubusercontent.com/u/846001?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisdembia","html_url":"https://github.com/chrisdembia","followers_url":"https://api.github.com/users/chrisdembia/followers","following_url":"https://api.github.com/users/chrisdembia/following{/other_user}","gists_url":"https://api.github.com/users/chrisdembia/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisdembia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisdembia/subscriptions","organizations_url":"https://api.github.com/users/chrisdembia/orgs","repos_url":"https://api.github.com/users/chrisdembia/repos","events_url":"https://api.github.com/users/chrisdembia/events{/privacy}","received_events_url":"https://api.github.com/users/chrisdembia/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-20T07:22:26Z","updated_at":"2017-02-20T07:43:58Z","closed_at":"2017-02-20T07:43:37Z","body":"I am writing an interactive MATLAB script using OpenSim and the simbody-visualizer. I am using `InputSilo::waitForKeyHit()` to start the simulation when the user hits any key in the simbody-visualizer, and to shut down the simbody-visualizer if the user hits the Escape key. This works great.\r\n\r\nHowever, if the user closes the simbody-visualizer executable without any key presses, then the MATLAB script hangs forever at the `waitForKeyHit()` call. MATLAB does not send Ctrl+C down to through to native code, so the only recourse is to kill MATLAB. \r\n\r\nWould it be possible for closing the simbody-visualizer to cause `waitForKeyHit()` to return?"},"comment":{"url":"https://api.github.com/repos/simbody/simbody/issues/comments/281008560","html_url":"https://github.com/simbody/simbody/issues/549#issuecomment-281008560","issue_url":"https://api.github.com/repos/simbody/simbody/issues/549","id":281008560,"user":{"login":"chrisdembia","id":846001,"avatar_url":"https://avatars.githubusercontent.com/u/846001?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisdembia","html_url":"https://github.com/chrisdembia","followers_url":"https://api.github.com/users/chrisdembia/followers","following_url":"https://api.github.com/users/chrisdembia/following{/other_user}","gists_url":"https://api.github.com/users/chrisdembia/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisdembia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisdembia/subscriptions","organizations_url":"https://api.github.com/users/chrisdembia/orgs","repos_url":"https://api.github.com/users/chrisdembia/repos","events_url":"https://api.github.com/users/chrisdembia/events{/privacy}","received_events_url":"https://api.github.com/users/chrisdembia/received_events","type":"User","site_admin":false},"created_at":"2017-02-20T07:43:58Z","updated_at":"2017-02-20T07:43:58Z","body":"Nevermind, I can use `isAnyUserInput()` and `takeKeyHit()`."}}
{"actor":{"display_login":"chrisdembia"}}