{"action":"closed","issue":{"url":"https://api.github.com/repos/Psychtoolbox-3/Psychtoolbox-3/issues/278","labels_url":"https://api.github.com/repos/Psychtoolbox-3/Psychtoolbox-3/issues/278/labels{/name}","comments_url":"https://api.github.com/repos/Psychtoolbox-3/Psychtoolbox-3/issues/278/comments","events_url":"https://api.github.com/repos/Psychtoolbox-3/Psychtoolbox-3/issues/278/events","html_url":"https://github.com/Psychtoolbox-3/Psychtoolbox-3/issues/278","id":105011288,"number":278,"title":"[Feature request] Screen flip on event feature","user":{"login":"suxpert","id":1191414,"avatar_url":"https://avatars.githubusercontent.com/u/1191414?v=3","gravatar_id":"","url":"https://api.github.com/users/suxpert","html_url":"https://github.com/suxpert","followers_url":"https://api.github.com/users/suxpert/followers","following_url":"https://api.github.com/users/suxpert/following{/other_user}","gists_url":"https://api.github.com/users/suxpert/gists{/gist_id}","starred_url":"https://api.github.com/users/suxpert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suxpert/subscriptions","organizations_url":"https://api.github.com/users/suxpert/orgs","repos_url":"https://api.github.com/users/suxpert/repos","events_url":"https://api.github.com/users/suxpert/events{/privacy}","received_events_url":"https://api.github.com/users/suxpert/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-05T07:26:20Z","updated_at":"2015-09-13T03:30:27Z","closed_at":"2015-09-13T03:30:26Z","body":"Hi there,\r\n\r\nIt seems that now PTB window can flip only if Screen('flip') command is called, thus after this function call, or timeout, PTB window will display the contents.\r\n\r\nSo now, if I need the screen flip after I press a key, or click somewhere, I'll have to check again and again on keyboard status, when meet the certain event, I call the Screen('flip') command to fresh the window. ---So there are few time between the event and this flip, this delay might up to perhaps more than 2 times of monitor refresh interval.\r\n\r\nI think, if there is such a feature, that the screen can itself listen to those events, and do the flip as soon as the event took place, it will be much better on time control."}}