{"action":"closed","number":33,"pull_request":{"url":"https://api.github.com/repos/nim-lang/sdl2/pulls/33","id":31466725,"html_url":"https://github.com/nim-lang/sdl2/pull/33","diff_url":"https://github.com/nim-lang/sdl2/pull/33.diff","patch_url":"https://github.com/nim-lang/sdl2/pull/33.patch","issue_url":"https://api.github.com/repos/nim-lang/sdl2/issues/33","number":33,"state":"closed","locked":false,"title":"Fixed KeyReleased and KeyPressed constants","user":{"login":"yglukhov","id":6962409,"avatar_url":"https://avatars.githubusercontent.com/u/6962409?v=3","gravatar_id":"","url":"https://api.github.com/users/yglukhov","html_url":"https://github.com/yglukhov","followers_url":"https://api.github.com/users/yglukhov/followers","following_url":"https://api.github.com/users/yglukhov/following{/other_user}","gists_url":"https://api.github.com/users/yglukhov/gists{/gist_id}","starred_url":"https://api.github.com/users/yglukhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yglukhov/subscriptions","organizations_url":"https://api.github.com/users/yglukhov/orgs","repos_url":"https://api.github.com/users/yglukhov/repos","events_url":"https://api.github.com/users/yglukhov/events{/privacy}","received_events_url":"https://api.github.com/users/yglukhov/received_events","type":"User","site_admin":false},"body":"If I understood correctly, KeyReleased and KeyPressed constants are counterparts of SDL_RELEASED and SDL_PRESSED in C. In such case, they are incorrect. Here's a few lines from SDL_events.h:\r\n```\r\n/* General keyboard/mouse state definitions */\r\n#define SDL_RELEASED    0\r\n#define SDL_PRESSED 1\r\n```","created_at":"2015-03-18T20:07:04Z","updated_at":"2015-03-18T22:56:36Z","closed_at":"2015-03-18T22:56:36Z","merged_at":"2015-03-18T22:56:36Z","merge_commit_sha":"dc54ff608a14a5022ee95c36360daec92e083a29","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nim-lang/sdl2/pulls/33/commits","review_comments_url":"https://api.github.com/repos/nim-lang/sdl2/pulls/33/comments","review_comment_url":"https://api.github.com/repos/nim-lang/sdl2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nim-lang/sdl2/issues/33/comments","statuses_url":"https://api.github.com/repos/nim-lang/sdl2/statuses/7803477c9078a0539cf514a8ab6cd0e245bc9148","head":{"label":"yglukhov:patch-1","ref":"patch-1","sha":"7803477c9078a0539cf514a8ab6cd0e245bc9148","user":{"login":"yglukhov","id":6962409,"avatar_url":"https://avatars.githubusercontent.com/u/6962409?v=3","gravatar_id":"","url":"https://api.github.com/users/yglukhov","html_url":"https://github.com/yglukhov","followers_url":"https://api.github.com/users/yglukhov/followers","following_url":"https://api.github.com/users/yglukhov/following{/other_user}","gists_url":"https://api.github.com/users/yglukhov/gists{/gist_id}","starred_url":"https://api.github.com/users/yglukhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yglukhov/subscriptions","organizations_url":"https://api.github.com/users/yglukhov/orgs","repos_url":"https://api.github.com/users/yglukhov/repos","events_url":"https://api.github.com/users/yglukhov/events{/privacy}","received_events_url":"https://api.github.com/users/yglukhov/received_events","type":"User","site_admin":false},"repo":{"id":26997247,"name":"sdl2","full_name":"yglukhov/sdl2","owner":{"login":"yglukhov","id":6962409,"avatar_url":"https://avatars.githubusercontent.com/u/6962409?v=3","gravatar_id":"","url":"https://api.github.com/users/yglukhov","html_url":"https://github.com/yglukhov","followers_url":"https://api.github.com/users/yglukhov/followers","following_url":"https://api.github.com/users/yglukhov/following{/other_user}","gists_url":"https://api.github.com/users/yglukhov/gists{/gist_id}","starred_url":"https://api.github.com/users/yglukhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yglukhov/subscriptions","organizations_url":"https://api.github.com/users/yglukhov/orgs","repos_url":"https://api.github.com/users/yglukhov/repos","events_url":"https://api.github.com/users/yglukhov/events{/privacy}","received_events_url":"https://api.github.com/users/yglukhov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yglukhov/sdl2","description":"Nimrod wrapper for SDL 2.x","fork":true,"url":"https://api.github.com/repos/yglukhov/sdl2","forks_url":"https://api.github.com/repos/yglukhov/sdl2/forks","keys_url":"https://api.github.com/repos/yglukhov/sdl2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yglukhov/sdl2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yglukhov/sdl2/teams","hooks_url":"https://api.github.com/repos/yglukhov/sdl2/hooks","issue_events_url":"https://api.github.com/repos/yglukhov/sdl2/issues/events{/number}","events_url":"https://api.github.com/repos/yglukhov/sdl2/events","assignees_url":"https://api.github.com/repos/yglukhov/sdl2/assignees{/user}","branches_url":"https://api.github.com/repos/yglukhov/sdl2/branches{/branch}","tags_url":"https://api.github.com/repos/yglukhov/sdl2/tags","blobs_url":"https://api.github.com/repos/yglukhov/sdl2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yglukhov/sdl2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yglukhov/sdl2/git/refs{/sha}","trees_url":"https://api.github.com/repos/yglukhov/sdl2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yglukhov/sdl2/statuses/{sha}","languages_url":"https://api.github.com/repos/yglukhov/sdl2/languages","stargazers_url":"https://api.github.com/repos/yglukhov/sdl2/stargazers","contributors_url":"https://api.github.com/repos/yglukhov/sdl2/contributors","subscribers_url":"https://api.github.com/repos/yglukhov/sdl2/subscribers","subscription_url":"https://api.github.com/repos/yglukhov/sdl2/subscription","commits_url":"https://api.github.com/repos/yglukhov/sdl2/commits{/sha}","git_commits_url":"https://api.github.com/repos/yglukhov/sdl2/git/commits{/sha}","comments_url":"https://api.github.com/repos/yglukhov/sdl2/comments{/number}","issue_comment_url":"https://api.github.com/repos/yglukhov/sdl2/issues/comments{/number}","contents_url":"https://api.github.com/repos/yglukhov/sdl2/contents/{+path}","compare_url":"https://api.github.com/repos/yglukhov/sdl2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yglukhov/sdl2/merges","archive_url":"https://api.github.com/repos/yglukhov/sdl2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yglukhov/sdl2/downloads","issues_url":"https://api.github.com/repos/yglukhov/sdl2/issues{/number}","pulls_url":"https://api.github.com/repos/yglukhov/sdl2/pulls{/number}","milestones_url":"https://api.github.com/repos/yglukhov/sdl2/milestones{/number}","notifications_url":"https://api.github.com/repos/yglukhov/sdl2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yglukhov/sdl2/labels{/name}","releases_url":"https://api.github.com/repos/yglukhov/sdl2/releases{/id}","created_at":"2014-11-22T11:43:51Z","updated_at":"2014-11-22T11:43:51Z","pushed_at":"2015-03-18T20:03:59Z","git_url":"git://github.com/yglukhov/sdl2.git","ssh_url":"git@github.com:yglukhov/sdl2.git","clone_url":"https://github.com/yglukhov/sdl2.git","svn_url":"https://github.com/yglukhov/sdl2","homepage":null,"size":290,"stargazers_count":0,"watchers_count":0,"language":"Nimrod","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"nim-lang:master","ref":"master","sha":"31f221d69497c8f59e1361122d05bca3d449b502","user":{"login":"nim-lang","id":603863,"avatar_url":"https://avatars.githubusercontent.com/u/603863?v=3","gravatar_id":"","url":"https://api.github.com/users/nim-lang","html_url":"https://github.com/nim-lang","followers_url":"https://api.github.com/users/nim-lang/followers","following_url":"https://api.github.com/users/nim-lang/following{/other_user}","gists_url":"https://api.github.com/users/nim-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/nim-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nim-lang/subscriptions","organizations_url":"https://api.github.com/users/nim-lang/orgs","repos_url":"https://api.github.com/users/nim-lang/repos","events_url":"https://api.github.com/users/nim-lang/events{/privacy}","received_events_url":"https://api.github.com/users/nim-lang/received_events","type":"Organization","site_admin":false},"repo":{"id":17325360,"name":"sdl2","full_name":"nim-lang/sdl2","owner":{"login":"nim-lang","id":603863,"avatar_url":"https://avatars.githubusercontent.com/u/603863?v=3","gravatar_id":"","url":"https://api.github.com/users/nim-lang","html_url":"https://github.com/nim-lang","followers_url":"https://api.github.com/users/nim-lang/followers","following_url":"https://api.github.com/users/nim-lang/following{/other_user}","gists_url":"https://api.github.com/users/nim-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/nim-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nim-lang/subscriptions","organizations_url":"https://api.github.com/users/nim-lang/orgs","repos_url":"https://api.github.com/users/nim-lang/repos","events_url":"https://api.github.com/users/nim-lang/events{/privacy}","received_events_url":"https://api.github.com/users/nim-lang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nim-lang/sdl2","description":"Nimrod wrapper for SDL 2.x","fork":false,"url":"https://api.github.com/repos/nim-lang/sdl2","forks_url":"https://api.github.com/repos/nim-lang/sdl2/forks","keys_url":"https://api.github.com/repos/nim-lang/sdl2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nim-lang/sdl2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nim-lang/sdl2/teams","hooks_url":"https://api.github.com/repos/nim-lang/sdl2/hooks","issue_events_url":"https://api.github.com/repos/nim-lang/sdl2/issues/events{/number}","events_url":"https://api.github.com/repos/nim-lang/sdl2/events","assignees_url":"https://api.github.com/repos/nim-lang/sdl2/assignees{/user}","branches_url":"https://api.github.com/repos/nim-lang/sdl2/branches{/branch}","tags_url":"https://api.github.com/repos/nim-lang/sdl2/tags","blobs_url":"https://api.github.com/repos/nim-lang/sdl2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nim-lang/sdl2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nim-lang/sdl2/git/refs{/sha}","trees_url":"https://api.github.com/repos/nim-lang/sdl2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nim-lang/sdl2/statuses/{sha}","languages_url":"https://api.github.com/repos/nim-lang/sdl2/languages","stargazers_url":"https://api.github.com/repos/nim-lang/sdl2/stargazers","contributors_url":"https://api.github.com/repos/nim-lang/sdl2/contributors","subscribers_url":"https://api.github.com/repos/nim-lang/sdl2/subscribers","subscription_url":"https://api.github.com/repos/nim-lang/sdl2/subscription","commits_url":"https://api.github.com/repos/nim-lang/sdl2/commits{/sha}","git_commits_url":"https://api.github.com/repos/nim-lang/sdl2/git/commits{/sha}","comments_url":"https://api.github.com/repos/nim-lang/sdl2/comments{/number}","issue_comment_url":"https://api.github.com/repos/nim-lang/sdl2/issues/comments{/number}","contents_url":"https://api.github.com/repos/nim-lang/sdl2/contents/{+path}","compare_url":"https://api.github.com/repos/nim-lang/sdl2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nim-lang/sdl2/merges","archive_url":"https://api.github.com/repos/nim-lang/sdl2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nim-lang/sdl2/downloads","issues_url":"https://api.github.com/repos/nim-lang/sdl2/issues{/number}","pulls_url":"https://api.github.com/repos/nim-lang/sdl2/pulls{/number}","milestones_url":"https://api.github.com/repos/nim-lang/sdl2/milestones{/number}","notifications_url":"https://api.github.com/repos/nim-lang/sdl2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nim-lang/sdl2/labels{/name}","releases_url":"https://api.github.com/repos/nim-lang/sdl2/releases{/id}","created_at":"2014-03-01T22:01:13Z","updated_at":"2015-03-08T14:50:44Z","pushed_at":"2015-03-18T22:56:36Z","git_url":"git://github.com/nim-lang/sdl2.git","ssh_url":"git@github.com:nim-lang/sdl2.git","clone_url":"https://github.com/nim-lang/sdl2.git","svn_url":"https://github.com/nim-lang/sdl2","homepage":null,"size":577,"stargazers_count":18,"watchers_count":18,"language":"Nimrod","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":3,"forks":16,"open_issues":3,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nim-lang/sdl2/pulls/33"},"html":{"href":"https://github.com/nim-lang/sdl2/pull/33"},"issue":{"href":"https://api.github.com/repos/nim-lang/sdl2/issues/33"},"comments":{"href":"https://api.github.com/repos/nim-lang/sdl2/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/nim-lang/sdl2/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/nim-lang/sdl2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nim-lang/sdl2/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/nim-lang/sdl2/statuses/7803477c9078a0539cf514a8ab6cd0e245bc9148"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"fowlmouth","id":640999,"avatar_url":"https://avatars.githubusercontent.com/u/640999?v=3","gravatar_id":"","url":"https://api.github.com/users/fowlmouth","html_url":"https://github.com/fowlmouth","followers_url":"https://api.github.com/users/fowlmouth/followers","following_url":"https://api.github.com/users/fowlmouth/following{/other_user}","gists_url":"https://api.github.com/users/fowlmouth/gists{/gist_id}","starred_url":"https://api.github.com/users/fowlmouth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fowlmouth/subscriptions","organizations_url":"https://api.github.com/users/fowlmouth/orgs","repos_url":"https://api.github.com/users/fowlmouth/repos","events_url":"https://api.github.com/users/fowlmouth/events{/privacy}","received_events_url":"https://api.github.com/users/fowlmouth/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}