{"action":"created","comment":{"url":"https://api.github.com/repos/daid/Geronimo/pulls/comments/244297508","pull_request_review_id":188262847,"id":244297508,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NDI5NzUwOA==","diff_hunk":"@@ -50,3 +51,97 @@ Controls::Controls(int index)\n         start.setKey(\"2\");\n     }\n }\n+\n+KeyState KeyState::fromIO(const sp::io::Keybinding& key)\n+{\n+    KeyState result = KeyState(key.get(), key.getDown(), key.getUp(), key.getValue());\n+    return result;\n+}\n+\n+void KeyState::writeToFile(FILE *f) {\n+    int flags = (pressed ? 1 : 0) | (down ? 2 : 0) | (up ? 4 : 0);\n+    fwrite(&flags, 1, 1, f);\n+    fwrite(&value, sizeof(value), 1, f);\n+}\n+\n+bool KeyState::readFromFile(FILE *f, KeyState& result) {","path":"src/controls.cpp","position":23,"original_position":23,"commit_id":"3ac6f6b8b2f1ce4c1f3a327a062d9aa7ae893c44","original_commit_id":"3ac6f6b8b2f1ce4c1f3a327a062d9aa7ae893c44","user":{"login":"daid","id":964186,"node_id":"MDQ6VXNlcjk2NDE4Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/964186?v=4","gravatar_id":"","url":"https://api.github.com/users/daid","html_url":"https://github.com/daid","followers_url":"https://api.github.com/users/daid/followers","following_url":"https://api.github.com/users/daid/following{/other_user}","gists_url":"https://api.github.com/users/daid/gists{/gist_id}","starred_url":"https://api.github.com/users/daid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daid/subscriptions","organizations_url":"https://api.github.com/users/daid/orgs","repos_url":"https://api.github.com/users/daid/repos","events_url":"https://api.github.com/users/daid/events{/privacy}","received_events_url":"https://api.github.com/users/daid/received_events","type":"User","site_admin":false},"body":"codestyle","created_at":"2018-12-28T10:31:08Z","updated_at":"2018-12-28T10:36:56Z","html_url":"https://github.com/daid/Geronimo/pull/7#discussion_r244297508","pull_request_url":"https://api.github.com/repos/daid/Geronimo/pulls/7","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/daid/Geronimo/pulls/comments/244297508"},"html":{"href":"https://github.com/daid/Geronimo/pull/7#discussion_r244297508"},"pull_request":{"href":"https://api.github.com/repos/daid/Geronimo/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/daid/Geronimo/pulls/7","id":240651417,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQwNjUxNDE3","html_url":"https://github.com/daid/Geronimo/pull/7","diff_url":"https://github.com/daid/Geronimo/pull/7.diff","patch_url":"https://github.com/daid/Geronimo/pull/7.patch","issue_url":"https://api.github.com/repos/daid/Geronimo/issues/7","number":7,"state":"open","locked":false,"title":"Basic replay feature","user":{"login":"kaspervn","id":1475591,"node_id":"MDQ6VXNlcjE0NzU1OTE=","avatar_url":"https://avatars3.githubusercontent.com/u/1475591?v=4","gravatar_id":"","url":"https://api.github.com/users/kaspervn","html_url":"https://github.com/kaspervn","followers_url":"https://api.github.com/users/kaspervn/followers","following_url":"https://api.github.com/users/kaspervn/following{/other_user}","gists_url":"https://api.github.com/users/kaspervn/gists{/gist_id}","starred_url":"https://api.github.com/users/kaspervn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaspervn/subscriptions","organizations_url":"https://api.github.com/users/kaspervn/orgs","repos_url":"https://api.github.com/users/kaspervn/repos","events_url":"https://api.github.com/users/kaspervn/events{/privacy}","received_events_url":"https://api.github.com/users/kaspervn/received_events","type":"User","site_admin":false},"body":"Basic replay feature. No UI additions.\r\nCurrently uses buttons unknown4(time record) and unknown5(fuel record) to initiate a playback from the level select scene.\r\nAlso adds a .gitignore file :)","created_at":"2018-12-22T20:01:49Z","updated_at":"2018-12-28T10:36:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3a942c4f8c2e332a3b3b4149f22160e980b070d9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/daid/Geronimo/pulls/7/commits","review_comments_url":"https://api.github.com/repos/daid/Geronimo/pulls/7/comments","review_comment_url":"https://api.github.com/repos/daid/Geronimo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/daid/Geronimo/issues/7/comments","statuses_url":"https://api.github.com/repos/daid/Geronimo/statuses/3ac6f6b8b2f1ce4c1f3a327a062d9aa7ae893c44","head":{"label":"kaspervn:replays","ref":"replays","sha":"3ac6f6b8b2f1ce4c1f3a327a062d9aa7ae893c44","user":{"login":"kaspervn","id":1475591,"node_id":"MDQ6VXNlcjE0NzU1OTE=","avatar_url":"https://avatars3.githubusercontent.com/u/1475591?v=4","gravatar_id":"","url":"https://api.github.com/users/kaspervn","html_url":"https://github.com/kaspervn","followers_url":"https://api.github.com/users/kaspervn/followers","following_url":"https://api.github.com/users/kaspervn/following{/other_user}","gists_url":"https://api.github.com/users/kaspervn/gists{/gist_id}","starred_url":"https://api.github.com/users/kaspervn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaspervn/subscriptions","organizations_url":"https://api.github.com/users/kaspervn/orgs","repos_url":"https://api.github.com/users/kaspervn/repos","events_url":"https://api.github.com/users/kaspervn/events{/privacy}","received_events_url":"https://api.github.com/users/kaspervn/received_events","type":"User","site_admin":false},"repo":{"id":162022335,"node_id":"MDEwOlJlcG9zaXRvcnkxNjIwMjIzMzU=","name":"Geronimo","full_name":"kaspervn/Geronimo","private":false,"owner":{"login":"kaspervn","id":1475591,"node_id":"MDQ6VXNlcjE0NzU1OTE=","avatar_url":"https://avatars3.githubusercontent.com/u/1475591?v=4","gravatar_id":"","url":"https://api.github.com/users/kaspervn","html_url":"https://github.com/kaspervn","followers_url":"https://api.github.com/users/kaspervn/followers","following_url":"https://api.github.com/users/kaspervn/following{/other_user}","gists_url":"https://api.github.com/users/kaspervn/gists{/gist_id}","starred_url":"https://api.github.com/users/kaspervn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaspervn/subscriptions","organizations_url":"https://api.github.com/users/kaspervn/orgs","repos_url":"https://api.github.com/users/kaspervn/repos","events_url":"https://api.github.com/users/kaspervn/events{/privacy}","received_events_url":"https://api.github.com/users/kaspervn/received_events","type":"User","site_admin":false},"html_url":"https://github.com/kaspervn/Geronimo","description":null,"fork":true,"url":"https://api.github.com/repos/kaspervn/Geronimo","forks_url":"https://api.github.com/repos/kaspervn/Geronimo/forks","keys_url":"https://api.github.com/repos/kaspervn/Geronimo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaspervn/Geronimo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaspervn/Geronimo/teams","hooks_url":"https://api.github.com/repos/kaspervn/Geronimo/hooks","issue_events_url":"https://api.github.com/repos/kaspervn/Geronimo/issues/events{/number}","events_url":"https://api.github.com/repos/kaspervn/Geronimo/events","assignees_url":"https://api.github.com/repos/kaspervn/Geronimo/assignees{/user}","branches_url":"https://api.github.com/repos/kaspervn/Geronimo/branches{/branch}","tags_url":"https://api.github.com/repos/kaspervn/Geronimo/tags","blobs_url":"https://api.github.com/repos/kaspervn/Geronimo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaspervn/Geronimo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaspervn/Geronimo/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaspervn/Geronimo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaspervn/Geronimo/statuses/{sha}","languages_url":"https://api.github.com/repos/kaspervn/Geronimo/languages","stargazers_url":"https://api.github.com/repos/kaspervn/Geronimo/stargazers","contributors_url":"https://api.github.com/repos/kaspervn/Geronimo/contributors","subscribers_url":"https://api.github.com/repos/kaspervn/Geronimo/subscribers","subscription_url":"https://api.github.com/repos/kaspervn/Geronimo/subscription","commits_url":"https://api.github.com/repos/kaspervn/Geronimo/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaspervn/Geronimo/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaspervn/Geronimo/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaspervn/Geronimo/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaspervn/Geronimo/contents/{+path}","compare_url":"https://api.github.com/repos/kaspervn/Geronimo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaspervn/Geronimo/merges","archive_url":"https://api.github.com/repos/kaspervn/Geronimo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaspervn/Geronimo/downloads","issues_url":"https://api.github.com/repos/kaspervn/Geronimo/issues{/number}","pulls_url":"https://api.github.com/repos/kaspervn/Geronimo/pulls{/number}","milestones_url":"https://api.github.com/repos/kaspervn/Geronimo/milestones{/number}","notifications_url":"https://api.github.com/repos/kaspervn/Geronimo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaspervn/Geronimo/labels{/name}","releases_url":"https://api.github.com/repos/kaspervn/Geronimo/releases{/id}","deployments_url":"https://api.github.com/repos/kaspervn/Geronimo/deployments","created_at":"2018-12-16T16:59:05Z","updated_at":"2018-12-16T16:59:07Z","pushed_at":"2018-12-22T20:04:27Z","git_url":"git://github.com/kaspervn/Geronimo.git","ssh_url":"git@github.com:kaspervn/Geronimo.git","clone_url":"https://github.com/kaspervn/Geronimo.git","svn_url":"https://github.com/kaspervn/Geronimo","homepage":null,"size":287,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"daid:master","ref":"master","sha":"ce928dc2f69e934a6245357832ca839082fcf4ac","user":{"login":"daid","id":964186,"node_id":"MDQ6VXNlcjk2NDE4Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/964186?v=4","gravatar_id":"","url":"https://api.github.com/users/daid","html_url":"https://github.com/daid","followers_url":"https://api.github.com/users/daid/followers","following_url":"https://api.github.com/users/daid/following{/other_user}","gists_url":"https://api.github.com/users/daid/gists{/gist_id}","starred_url":"https://api.github.com/users/daid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daid/subscriptions","organizations_url":"https://api.github.com/users/daid/orgs","repos_url":"https://api.github.com/users/daid/repos","events_url":"https://api.github.com/users/daid/events{/privacy}","received_events_url":"https://api.github.com/users/daid/received_events","type":"User","site_admin":false},"repo":{"id":156440084,"node_id":"MDEwOlJlcG9zaXRvcnkxNTY0NDAwODQ=","name":"Geronimo","full_name":"daid/Geronimo","private":false,"owner":{"login":"daid","id":964186,"node_id":"MDQ6VXNlcjk2NDE4Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/964186?v=4","gravatar_id":"","url":"https://api.github.com/users/daid","html_url":"https://github.com/daid","followers_url":"https://api.github.com/users/daid/followers","following_url":"https://api.github.com/users/daid/following{/other_user}","gists_url":"https://api.github.com/users/daid/gists{/gist_id}","starred_url":"https://api.github.com/users/daid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daid/subscriptions","organizations_url":"https://api.github.com/users/daid/orgs","repos_url":"https://api.github.com/users/daid/repos","events_url":"https://api.github.com/users/daid/events{/privacy}","received_events_url":"https://api.github.com/users/daid/received_events","type":"User","site_admin":false},"html_url":"https://github.com/daid/Geronimo","description":null,"fork":false,"url":"https://api.github.com/repos/daid/Geronimo","forks_url":"https://api.github.com/repos/daid/Geronimo/forks","keys_url":"https://api.github.com/repos/daid/Geronimo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/daid/Geronimo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/daid/Geronimo/teams","hooks_url":"https://api.github.com/repos/daid/Geronimo/hooks","issue_events_url":"https://api.github.com/repos/daid/Geronimo/issues/events{/number}","events_url":"https://api.github.com/repos/daid/Geronimo/events","assignees_url":"https://api.github.com/repos/daid/Geronimo/assignees{/user}","branches_url":"https://api.github.com/repos/daid/Geronimo/branches{/branch}","tags_url":"https://api.github.com/repos/daid/Geronimo/tags","blobs_url":"https://api.github.com/repos/daid/Geronimo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/daid/Geronimo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/daid/Geronimo/git/refs{/sha}","trees_url":"https://api.github.com/repos/daid/Geronimo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/daid/Geronimo/statuses/{sha}","languages_url":"https://api.github.com/repos/daid/Geronimo/languages","stargazers_url":"https://api.github.com/repos/daid/Geronimo/stargazers","contributors_url":"https://api.github.com/repos/daid/Geronimo/contributors","subscribers_url":"https://api.github.com/repos/daid/Geronimo/subscribers","subscription_url":"https://api.github.com/repos/daid/Geronimo/subscription","commits_url":"https://api.github.com/repos/daid/Geronimo/commits{/sha}","git_commits_url":"https://api.github.com/repos/daid/Geronimo/git/commits{/sha}","comments_url":"https://api.github.com/repos/daid/Geronimo/comments{/number}","issue_comment_url":"https://api.github.com/repos/daid/Geronimo/issues/comments{/number}","contents_url":"https://api.github.com/repos/daid/Geronimo/contents/{+path}","compare_url":"https://api.github.com/repos/daid/Geronimo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/daid/Geronimo/merges","archive_url":"https://api.github.com/repos/daid/Geronimo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/daid/Geronimo/downloads","issues_url":"https://api.github.com/repos/daid/Geronimo/issues{/number}","pulls_url":"https://api.github.com/repos/daid/Geronimo/pulls{/number}","milestones_url":"https://api.github.com/repos/daid/Geronimo/milestones{/number}","notifications_url":"https://api.github.com/repos/daid/Geronimo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/daid/Geronimo/labels{/name}","releases_url":"https://api.github.com/repos/daid/Geronimo/releases{/id}","deployments_url":"https://api.github.com/repos/daid/Geronimo/deployments","created_at":"2018-11-06T20:00:35Z","updated_at":"2018-12-13T19:26:21Z","pushed_at":"2018-12-22T20:04:28Z","git_url":"git://github.com/daid/Geronimo.git","ssh_url":"git@github.com:daid/Geronimo.git","clone_url":"https://github.com/daid/Geronimo.git","svn_url":"https://github.com/daid/Geronimo","homepage":null,"size":262,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":3,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/daid/Geronimo/pulls/7"},"html":{"href":"https://github.com/daid/Geronimo/pull/7"},"issue":{"href":"https://api.github.com/repos/daid/Geronimo/issues/7"},"comments":{"href":"https://api.github.com/repos/daid/Geronimo/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/daid/Geronimo/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/daid/Geronimo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/daid/Geronimo/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/daid/Geronimo/statuses/3ac6f6b8b2f1ce4c1f3a327a062d9aa7ae893c44"}},"author_association":"NONE"}}
{"actor":{"display_login":"daid"}}