{"action":"created","issue":{"url":"https://api.github.com/repos/openMSX/openMSX/issues/732","labels_url":"https://api.github.com/repos/openMSX/openMSX/issues/732/labels{/name}","comments_url":"https://api.github.com/repos/openMSX/openMSX/issues/732/comments","events_url":"https://api.github.com/repos/openMSX/openMSX/issues/732/events","html_url":"https://github.com/openMSX/openMSX/issues/732","id":87943156,"number":732,"title":"[Bug] Joystick input is delayed by 3 to 5 frames [sf#417]","user":{"login":"andete","id":689017,"avatar_url":"https://avatars.githubusercontent.com/u/689017?v=3","gravatar_id":"","url":"https://api.github.com/users/andete","html_url":"https://github.com/andete","followers_url":"https://api.github.com/users/andete/followers","following_url":"https://api.github.com/users/andete/following{/other_user}","gists_url":"https://api.github.com/users/andete/gists{/gist_id}","starred_url":"https://api.github.com/users/andete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andete/subscriptions","organizations_url":"https://api.github.com/users/andete/orgs","repos_url":"https://api.github.com/users/andete/repos","events_url":"https://api.github.com/users/andete/events{/privacy}","received_events_url":"https://api.github.com/users/andete/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-13T06:14:35Z","updated_at":"2015-06-13T07:43:23Z","closed_at":"2015-06-13T07:43:01Z","body":"**Reported by sd-snatcher on 2011-07-23 19:40 UTC**\nJoystick input seems to be delayed by 3 to 5 frames. Steps to reproduce the problem:\r\n\r\n1\\) Connect an USB joystick and run openMSX\r\n2\\) Write a program that read the joystick trigger1 and trigger 2, halt waiting for an interrupt, then read the triggers again in a loop, by using GTTRIG\r\n3\\) Place a breakpoint to check the values read\r\n\r\nWhen you press or release a button on your USB joystick, the trigger1 value will change after 3 to 4 frames have passed. Trigger2 value will change after 4 to 5 frames.\r\n\r\nSetting maxframeskip to 0 seems to reduce this delay to being always 3 frames later, which is weird.\r\n\r\nTested on:\r\n\r\nopenMSX-0.8.1 on Mac OS-X v10.6.8\r\n"},"comment":{"url":"https://api.github.com/repos/openMSX/openMSX/issues/comments/111685019","html_url":"https://github.com/openMSX/openMSX/issues/732#issuecomment-111685019","issue_url":"https://api.github.com/repos/openMSX/openMSX/issues/732","id":111685019,"user":{"login":"andete","id":689017,"avatar_url":"https://avatars.githubusercontent.com/u/689017?v=3","gravatar_id":"","url":"https://api.github.com/users/andete","html_url":"https://github.com/andete","followers_url":"https://api.github.com/users/andete/followers","following_url":"https://api.github.com/users/andete/following{/other_user}","gists_url":"https://api.github.com/users/andete/gists{/gist_id}","starred_url":"https://api.github.com/users/andete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andete/subscriptions","organizations_url":"https://api.github.com/users/andete/orgs","repos_url":"https://api.github.com/users/andete/repos","events_url":"https://api.github.com/users/andete/events{/privacy}","received_events_url":"https://api.github.com/users/andete/received_events","type":"User","site_admin":false},"created_at":"2015-06-13T07:43:23Z","updated_at":"2015-06-13T07:43:23Z","body":"**Commented by sd-snatcher on 2013-11-25 23:06 UTC**\nI just tested and the bug seems to have been fixed. There's no lag anymore for the new value to be read by RDPSG after I press a button on the USB joystick.\r\n\r\nThanks!   :)\r\n\r\n"}}