{"action":"created","comment":{"url":"https://api.github.com/repos/reicast/reicast-emulator/pulls/comments/38493946","id":38493946,"diff_hunk":"@@ -9,7 +9,7 @@\n \tconst u32 joystick_map_axis_usb[JOYSTICK_MAP_SIZE]     = { DC_AXIS_X, DC_AXIS_Y, 0, 0, 0, 0, 0, 0, 0, 0 };\n \n \tconst u32 joystick_map_btn_xbox360[JOYSTICK_MAP_SIZE]  = { DC_BTN_A, DC_BTN_B, DC_BTN_X, DC_BTN_Y, 0, 0, 0, DC_BTN_START, 0, 0 };\n-\tconst u32 joystick_map_axis_xbox360[JOYSTICK_MAP_SIZE] = { DC_AXIS_X, DC_AXIS_Y, DC_AXIS_LT, 0, 0, DC_AXIS_RT, DC_DPAD_LEFT, DC_DPAD_UP, 0, 0 };\n+\tconst u32 joystick_map_axis_xbox360[JOYSTICK_MAP_SIZE] = { DC_AXIS_X, DC_AXIS_Y, DC_AXIS_LT, 0, 0, DC_AXIS_RT, DC_BTN_DPAD_LEFT, DC_BTN_DPAD_UP, 0, 0 };","path":"core/linux-dist/joystick.cpp","position":5,"original_position":5,"commit_id":"3d5fa60ef84069dac5b2a1dc600d5d2a8603d76b","original_commit_id":"3d5fa60ef84069dac5b2a1dc600d5d2a8603d76b","user":{"login":"skmp","id":393266,"avatar_url":"https://avatars.githubusercontent.com/u/393266?v=3","gravatar_id":"","url":"https://api.github.com/users/skmp","html_url":"https://github.com/skmp","followers_url":"https://api.github.com/users/skmp/followers","following_url":"https://api.github.com/users/skmp/following{/other_user}","gists_url":"https://api.github.com/users/skmp/gists{/gist_id}","starred_url":"https://api.github.com/users/skmp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skmp/subscriptions","organizations_url":"https://api.github.com/users/skmp/orgs","repos_url":"https://api.github.com/users/skmp/repos","events_url":"https://api.github.com/users/skmp/events{/privacy}","received_events_url":"https://api.github.com/users/skmp/received_events","type":"User","site_admin":false},"body":"DreamcastControllerCodes instead of u32?","created_at":"2015-09-02T02:24:59Z","updated_at":"2015-09-02T02:24:59Z","html_url":"https://github.com/reicast/reicast-emulator/pull/823#discussion_r38493946","pull_request_url":"https://api.github.com/repos/reicast/reicast-emulator/pulls/823","_links":{"self":{"href":"https://api.github.com/repos/reicast/reicast-emulator/pulls/comments/38493946"},"html":{"href":"https://github.com/reicast/reicast-emulator/pull/823#discussion_r38493946"},"pull_request":{"href":"https://api.github.com/repos/reicast/reicast-emulator/pulls/823"}}},"pull_request":{"url":"https://api.github.com/repos/reicast/reicast-emulator/pulls/823","id":43638271,"html_url":"https://github.com/reicast/reicast-emulator/pull/823","diff_url":"https://github.com/reicast/reicast-emulator/pull/823.diff","patch_url":"https://github.com/reicast/reicast-emulator/pull/823.patch","issue_url":"https://api.github.com/repos/reicast/reicast-emulator/issues/823","number":823,"state":"open","locked":false,"title":"Some groundwork for multiplayer support","user":{"login":"Holzhaus","id":1834516,"avatar_url":"https://avatars.githubusercontent.com/u/1834516?v=3","gravatar_id":"","url":"https://api.github.com/users/Holzhaus","html_url":"https://github.com/Holzhaus","followers_url":"https://api.github.com/users/Holzhaus/followers","following_url":"https://api.github.com/users/Holzhaus/following{/other_user}","gists_url":"https://api.github.com/users/Holzhaus/gists{/gist_id}","starred_url":"https://api.github.com/users/Holzhaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Holzhaus/subscriptions","organizations_url":"https://api.github.com/users/Holzhaus/orgs","repos_url":"https://api.github.com/users/Holzhaus/repos","events_url":"https://api.github.com/users/Holzhaus/events{/privacy}","received_events_url":"https://api.github.com/users/Holzhaus/received_events","type":"User","site_admin":false},"body":"~~This PR is still a work in progress, so expect rebasing/force-pushing to this branch.~~ If you have any concers about this, you can comment here :D\r\n\r\nWhat this does:\r\n- Removes 113 lines of duplicated code\r\n- Makes it possible to enable specific ports (like port 1 and 3, but not 2 and 4). Current behaviour remains unchanged (only port 1 is enabled at the moment)\r\n- Groups `kcode`, `joyx`, `joyy`, `lt` and `rt` together (since they belong together anyway) and gives them a more meaningful name\r\n\r\nThis might be useful anyway, but if we also merged #820, we could enable/disable ports before calling `dc_init()` based on what devices are configured and connected to the host OS.","created_at":"2015-08-28T15:11:22Z","updated_at":"2015-09-02T02:24:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"071a03667a03736f49b31fdb51dbb2742b8166e4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/reicast/reicast-emulator/pulls/823/commits","review_comments_url":"https://api.github.com/repos/reicast/reicast-emulator/pulls/823/comments","review_comment_url":"https://api.github.com/repos/reicast/reicast-emulator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/reicast/reicast-emulator/issues/823/comments","statuses_url":"https://api.github.com/repos/reicast/reicast-emulator/statuses/3d5fa60ef84069dac5b2a1dc600d5d2a8603d76b","head":{"label":"reicast:holzhaus/multiplayer","ref":"holzhaus/multiplayer","sha":"3d5fa60ef84069dac5b2a1dc600d5d2a8603d76b","user":{"login":"reicast","id":6210431,"avatar_url":"https://avatars.githubusercontent.com/u/6210431?v=3","gravatar_id":"","url":"https://api.github.com/users/reicast","html_url":"https://github.com/reicast","followers_url":"https://api.github.com/users/reicast/followers","following_url":"https://api.github.com/users/reicast/following{/other_user}","gists_url":"https://api.github.com/users/reicast/gists{/gist_id}","starred_url":"https://api.github.com/users/reicast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reicast/subscriptions","organizations_url":"https://api.github.com/users/reicast/orgs","repos_url":"https://api.github.com/users/reicast/repos","events_url":"https://api.github.com/users/reicast/events{/privacy}","received_events_url":"https://api.github.com/users/reicast/received_events","type":"Organization","site_admin":false},"repo":{"id":15270164,"name":"reicast-emulator","full_name":"reicast/reicast-emulator","owner":{"login":"reicast","id":6210431,"avatar_url":"https://avatars.githubusercontent.com/u/6210431?v=3","gravatar_id":"","url":"https://api.github.com/users/reicast","html_url":"https://github.com/reicast","followers_url":"https://api.github.com/users/reicast/followers","following_url":"https://api.github.com/users/reicast/following{/other_user}","gists_url":"https://api.github.com/users/reicast/gists{/gist_id}","starred_url":"https://api.github.com/users/reicast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reicast/subscriptions","organizations_url":"https://api.github.com/users/reicast/orgs","repos_url":"https://api.github.com/users/reicast/repos","events_url":"https://api.github.com/users/reicast/events{/privacy}","received_events_url":"https://api.github.com/users/reicast/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/reicast/reicast-emulator","description":"Reicast is a multiplatform Sega Dreamcast emulator","fork":false,"url":"https://api.github.com/repos/reicast/reicast-emulator","forks_url":"https://api.github.com/repos/reicast/reicast-emulator/forks","keys_url":"https://api.github.com/repos/reicast/reicast-emulator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/reicast/reicast-emulator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/reicast/reicast-emulator/teams","hooks_url":"https://api.github.com/repos/reicast/reicast-emulator/hooks","issue_events_url":"https://api.github.com/repos/reicast/reicast-emulator/issues/events{/number}","events_url":"https://api.github.com/repos/reicast/reicast-emulator/events","assignees_url":"https://api.github.com/repos/reicast/reicast-emulator/assignees{/user}","branches_url":"https://api.github.com/repos/reicast/reicast-emulator/branches{/branch}","tags_url":"https://api.github.com/repos/reicast/reicast-emulator/tags","blobs_url":"https://api.github.com/repos/reicast/reicast-emulator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/reicast/reicast-emulator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/reicast/reicast-emulator/git/refs{/sha}","trees_url":"https://api.github.com/repos/reicast/reicast-emulator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/reicast/reicast-emulator/statuses/{sha}","languages_url":"https://api.github.com/repos/reicast/reicast-emulator/languages","stargazers_url":"https://api.github.com/repos/reicast/reicast-emulator/stargazers","contributors_url":"https://api.github.com/repos/reicast/reicast-emulator/contributors","subscribers_url":"https://api.github.com/repos/reicast/reicast-emulator/subscribers","subscription_url":"https://api.github.com/repos/reicast/reicast-emulator/subscription","commits_url":"https://api.github.com/repos/reicast/reicast-emulator/commits{/sha}","git_commits_url":"https://api.github.com/repos/reicast/reicast-emulator/git/commits{/sha}","comments_url":"https://api.github.com/repos/reicast/reicast-emulator/comments{/number}","issue_comment_url":"https://api.github.com/repos/reicast/reicast-emulator/issues/comments{/number}","contents_url":"https://api.github.com/repos/reicast/reicast-emulator/contents/{+path}","compare_url":"https://api.github.com/repos/reicast/reicast-emulator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/reicast/reicast-emulator/merges","archive_url":"https://api.github.com/repos/reicast/reicast-emulator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/reicast/reicast-emulator/downloads","issues_url":"https://api.github.com/repos/reicast/reicast-emulator/issues{/number}","pulls_url":"https://api.github.com/repos/reicast/reicast-emulator/pulls{/number}","milestones_url":"https://api.github.com/repos/reicast/reicast-emulator/milestones{/number}","notifications_url":"https://api.github.com/repos/reicast/reicast-emulator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/reicast/reicast-emulator/labels{/name}","releases_url":"https://api.github.com/repos/reicast/reicast-emulator/releases{/id}","created_at":"2013-12-18T00:51:03Z","updated_at":"2015-09-01T15:27:16Z","pushed_at":"2015-09-01T04:00:08Z","git_url":"git://github.com/reicast/reicast-emulator.git","ssh_url":"git@github.com:reicast/reicast-emulator.git","clone_url":"https://github.com/reicast/reicast-emulator.git","svn_url":"https://github.com/reicast/reicast-emulator","homepage":"http://reicast.com","size":59900,"stargazers_count":282,"watchers_count":282,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":75,"mirror_url":null,"open_issues_count":185,"forks":75,"open_issues":185,"watchers":282,"default_branch":"master"}},"base":{"label":"reicast:master","ref":"master","sha":"1a751e3b5bb1240071f34008739602cbfba67872","user":{"login":"reicast","id":6210431,"avatar_url":"https://avatars.githubusercontent.com/u/6210431?v=3","gravatar_id":"","url":"https://api.github.com/users/reicast","html_url":"https://github.com/reicast","followers_url":"https://api.github.com/users/reicast/followers","following_url":"https://api.github.com/users/reicast/following{/other_user}","gists_url":"https://api.github.com/users/reicast/gists{/gist_id}","starred_url":"https://api.github.com/users/reicast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reicast/subscriptions","organizations_url":"https://api.github.com/users/reicast/orgs","repos_url":"https://api.github.com/users/reicast/repos","events_url":"https://api.github.com/users/reicast/events{/privacy}","received_events_url":"https://api.github.com/users/reicast/received_events","type":"Organization","site_admin":false},"repo":{"id":15270164,"name":"reicast-emulator","full_name":"reicast/reicast-emulator","owner":{"login":"reicast","id":6210431,"avatar_url":"https://avatars.githubusercontent.com/u/6210431?v=3","gravatar_id":"","url":"https://api.github.com/users/reicast","html_url":"https://github.com/reicast","followers_url":"https://api.github.com/users/reicast/followers","following_url":"https://api.github.com/users/reicast/following{/other_user}","gists_url":"https://api.github.com/users/reicast/gists{/gist_id}","starred_url":"https://api.github.com/users/reicast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reicast/subscriptions","organizations_url":"https://api.github.com/users/reicast/orgs","repos_url":"https://api.github.com/users/reicast/repos","events_url":"https://api.github.com/users/reicast/events{/privacy}","received_events_url":"https://api.github.com/users/reicast/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/reicast/reicast-emulator","description":"Reicast is a multiplatform Sega Dreamcast emulator","fork":false,"url":"https://api.github.com/repos/reicast/reicast-emulator","forks_url":"https://api.github.com/repos/reicast/reicast-emulator/forks","keys_url":"https://api.github.com/repos/reicast/reicast-emulator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/reicast/reicast-emulator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/reicast/reicast-emulator/teams","hooks_url":"https://api.github.com/repos/reicast/reicast-emulator/hooks","issue_events_url":"https://api.github.com/repos/reicast/reicast-emulator/issues/events{/number}","events_url":"https://api.github.com/repos/reicast/reicast-emulator/events","assignees_url":"https://api.github.com/repos/reicast/reicast-emulator/assignees{/user}","branches_url":"https://api.github.com/repos/reicast/reicast-emulator/branches{/branch}","tags_url":"https://api.github.com/repos/reicast/reicast-emulator/tags","blobs_url":"https://api.github.com/repos/reicast/reicast-emulator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/reicast/reicast-emulator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/reicast/reicast-emulator/git/refs{/sha}","trees_url":"https://api.github.com/repos/reicast/reicast-emulator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/reicast/reicast-emulator/statuses/{sha}","languages_url":"https://api.github.com/repos/reicast/reicast-emulator/languages","stargazers_url":"https://api.github.com/repos/reicast/reicast-emulator/stargazers","contributors_url":"https://api.github.com/repos/reicast/reicast-emulator/contributors","subscribers_url":"https://api.github.com/repos/reicast/reicast-emulator/subscribers","subscription_url":"https://api.github.com/repos/reicast/reicast-emulator/subscription","commits_url":"https://api.github.com/repos/reicast/reicast-emulator/commits{/sha}","git_commits_url":"https://api.github.com/repos/reicast/reicast-emulator/git/commits{/sha}","comments_url":"https://api.github.com/repos/reicast/reicast-emulator/comments{/number}","issue_comment_url":"https://api.github.com/repos/reicast/reicast-emulator/issues/comments{/number}","contents_url":"https://api.github.com/repos/reicast/reicast-emulator/contents/{+path}","compare_url":"https://api.github.com/repos/reicast/reicast-emulator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/reicast/reicast-emulator/merges","archive_url":"https://api.github.com/repos/reicast/reicast-emulator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/reicast/reicast-emulator/downloads","issues_url":"https://api.github.com/repos/reicast/reicast-emulator/issues{/number}","pulls_url":"https://api.github.com/repos/reicast/reicast-emulator/pulls{/number}","milestones_url":"https://api.github.com/repos/reicast/reicast-emulator/milestones{/number}","notifications_url":"https://api.github.com/repos/reicast/reicast-emulator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/reicast/reicast-emulator/labels{/name}","releases_url":"https://api.github.com/repos/reicast/reicast-emulator/releases{/id}","created_at":"2013-12-18T00:51:03Z","updated_at":"2015-09-01T15:27:16Z","pushed_at":"2015-09-01T04:00:08Z","git_url":"git://github.com/reicast/reicast-emulator.git","ssh_url":"git@github.com:reicast/reicast-emulator.git","clone_url":"https://github.com/reicast/reicast-emulator.git","svn_url":"https://github.com/reicast/reicast-emulator","homepage":"http://reicast.com","size":59900,"stargazers_count":282,"watchers_count":282,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":75,"mirror_url":null,"open_issues_count":185,"forks":75,"open_issues":185,"watchers":282,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/reicast/reicast-emulator/pulls/823"},"html":{"href":"https://github.com/reicast/reicast-emulator/pull/823"},"issue":{"href":"https://api.github.com/repos/reicast/reicast-emulator/issues/823"},"comments":{"href":"https://api.github.com/repos/reicast/reicast-emulator/issues/823/comments"},"review_comments":{"href":"https://api.github.com/repos/reicast/reicast-emulator/pulls/823/comments"},"review_comment":{"href":"https://api.github.com/repos/reicast/reicast-emulator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/reicast/reicast-emulator/pulls/823/commits"},"statuses":{"href":"https://api.github.com/repos/reicast/reicast-emulator/statuses/3d5fa60ef84069dac5b2a1dc600d5d2a8603d76b"}}}}