{"action":"created","issue":{"url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/issues/322","labels_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/issues/322/labels{/name}","comments_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/issues/322/comments","events_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/issues/322/events","html_url":"https://github.com/scp-fs2open/fs2open.github.com/pull/322","id":102877794,"number":322,"title":"joy_asynch - Enables SDL's event handling for joystick axes","user":{"login":"z64555","id":5084344,"avatar_url":"https://avatars.githubusercontent.com/u/5084344?v=3","gravatar_id":"","url":"https://api.github.com/users/z64555","html_url":"https://github.com/z64555","followers_url":"https://api.github.com/users/z64555/followers","following_url":"https://api.github.com/users/z64555/following{/other_user}","gists_url":"https://api.github.com/users/z64555/gists{/gist_id}","starred_url":"https://api.github.com/users/z64555/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/z64555/subscriptions","organizations_url":"https://api.github.com/users/z64555/orgs","repos_url":"https://api.github.com/users/z64555/repos","events_url":"https://api.github.com/users/z64555/events{/privacy}","received_events_url":"https://api.github.com/users/z64555/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/labels/antipodes","name":"antipodes","color":"0052cc"},{"url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/labels/cleanup","name":"cleanup","color":"fbca04"},{"url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-24T19:54:19Z","updated_at":"2015-08-27T11:02:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/pulls/322","html_url":"https://github.com/scp-fs2open/fs2open.github.com/pull/322","diff_url":"https://github.com/scp-fs2open/fs2open.github.com/pull/322.diff","patch_url":"https://github.com/scp-fs2open/fs2open.github.com/pull/322.patch"},"body":"Previously, when a joystick event happened that was related to axis movement, it would be ignored by the os_poll(). Button presses from joystick events were still processed, however.\r\n\r\nThis PR changes the axis polling system to be asynchronous of frame time, simplifying the joy_read functions to just read from a buffer instead of polling the joystick per frame. This should hopefully be the \"fastestest\" we can get with SDL when concerning analog inputs."},"comment":{"url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/issues/comments/135384419","html_url":"https://github.com/scp-fs2open/fs2open.github.com/pull/322#issuecomment-135384419","issue_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/issues/322","id":135384419,"user":{"login":"z64555","id":5084344,"avatar_url":"https://avatars.githubusercontent.com/u/5084344?v=3","gravatar_id":"","url":"https://api.github.com/users/z64555","html_url":"https://github.com/z64555","followers_url":"https://api.github.com/users/z64555/followers","following_url":"https://api.github.com/users/z64555/following{/other_user}","gists_url":"https://api.github.com/users/z64555/gists{/gist_id}","starred_url":"https://api.github.com/users/z64555/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/z64555/subscriptions","organizations_url":"https://api.github.com/users/z64555/orgs","repos_url":"https://api.github.com/users/z64555/repos","events_url":"https://api.github.com/users/z64555/events{/privacy}","received_events_url":"https://api.github.com/users/z64555/received_events","type":"User","site_admin":false},"created_at":"2015-08-27T11:02:01Z","updated_at":"2015-08-27T11:02:01Z","body":"oui, m|m pointed out some time ago that it should've been <climits> instead of just <limits> we'll see how this one goes."}}