{"action":"opened","number":433,"pull_request":{"url":"https://api.github.com/repos/Hammerspoon/hammerspoon/pulls/433","id":41182052,"html_url":"https://github.com/Hammerspoon/hammerspoon/pull/433","diff_url":"https://github.com/Hammerspoon/hammerspoon/pull/433.diff","patch_url":"https://github.com/Hammerspoon/hammerspoon/pull/433.patch","issue_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/433","number":433,"state":"open","locked":false,"title":"Add support for scroll wheel","user":{"login":"bbarkley","id":1278040,"avatar_url":"https://avatars.githubusercontent.com/u/1278040?v=3","gravatar_id":"","url":"https://api.github.com/users/bbarkley","html_url":"https://github.com/bbarkley","followers_url":"https://api.github.com/users/bbarkley/followers","following_url":"https://api.github.com/users/bbarkley/following{/other_user}","gists_url":"https://api.github.com/users/bbarkley/gists{/gist_id}","starred_url":"https://api.github.com/users/bbarkley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbarkley/subscriptions","organizations_url":"https://api.github.com/users/bbarkley/orgs","repos_url":"https://api.github.com/users/bbarkley/repos","events_url":"https://api.github.com/users/bbarkley/events{/privacy}","received_events_url":"https://api.github.com/users/bbarkley/received_events","type":"User","site_admin":false},"body":"**Full Disclosure** - This is my first time working with OS X or the Lua C APIs and was hacked together through a combination of reference docs and Google results. Please review with care, and I welcome suggestions for improvement.\r\n\r\nThis adds support for creating and executing scroll wheel events. I figured it belonged in the event module next to the `newMouseEvent` support for clicking rather than the mouse module which seems to be not event based and just for movement.","created_at":"2015-07-29T22:59:53Z","updated_at":"2015-07-29T22:59:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"702f580221f646c4150cc85e5e6cde4f0e3a02cf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/pulls/433/commits","review_comments_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/pulls/433/comments","review_comment_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/433/comments","statuses_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/statuses/752f1324edbfa0427d6154229482d002dbc4c165","head":{"label":"bbarkley:scrolling","ref":"scrolling","sha":"752f1324edbfa0427d6154229482d002dbc4c165","user":{"login":"bbarkley","id":1278040,"avatar_url":"https://avatars.githubusercontent.com/u/1278040?v=3","gravatar_id":"","url":"https://api.github.com/users/bbarkley","html_url":"https://github.com/bbarkley","followers_url":"https://api.github.com/users/bbarkley/followers","following_url":"https://api.github.com/users/bbarkley/following{/other_user}","gists_url":"https://api.github.com/users/bbarkley/gists{/gist_id}","starred_url":"https://api.github.com/users/bbarkley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbarkley/subscriptions","organizations_url":"https://api.github.com/users/bbarkley/orgs","repos_url":"https://api.github.com/users/bbarkley/repos","events_url":"https://api.github.com/users/bbarkley/events{/privacy}","received_events_url":"https://api.github.com/users/bbarkley/received_events","type":"User","site_admin":false},"repo":{"id":39919021,"name":"hammerspoon","full_name":"bbarkley/hammerspoon","owner":{"login":"bbarkley","id":1278040,"avatar_url":"https://avatars.githubusercontent.com/u/1278040?v=3","gravatar_id":"","url":"https://api.github.com/users/bbarkley","html_url":"https://github.com/bbarkley","followers_url":"https://api.github.com/users/bbarkley/followers","following_url":"https://api.github.com/users/bbarkley/following{/other_user}","gists_url":"https://api.github.com/users/bbarkley/gists{/gist_id}","starred_url":"https://api.github.com/users/bbarkley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbarkley/subscriptions","organizations_url":"https://api.github.com/users/bbarkley/orgs","repos_url":"https://api.github.com/users/bbarkley/repos","events_url":"https://api.github.com/users/bbarkley/events{/privacy}","received_events_url":"https://api.github.com/users/bbarkley/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bbarkley/hammerspoon","description":"Staggeringly powerful OS X desktop automation with Lua","fork":true,"url":"https://api.github.com/repos/bbarkley/hammerspoon","forks_url":"https://api.github.com/repos/bbarkley/hammerspoon/forks","keys_url":"https://api.github.com/repos/bbarkley/hammerspoon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bbarkley/hammerspoon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bbarkley/hammerspoon/teams","hooks_url":"https://api.github.com/repos/bbarkley/hammerspoon/hooks","issue_events_url":"https://api.github.com/repos/bbarkley/hammerspoon/issues/events{/number}","events_url":"https://api.github.com/repos/bbarkley/hammerspoon/events","assignees_url":"https://api.github.com/repos/bbarkley/hammerspoon/assignees{/user}","branches_url":"https://api.github.com/repos/bbarkley/hammerspoon/branches{/branch}","tags_url":"https://api.github.com/repos/bbarkley/hammerspoon/tags","blobs_url":"https://api.github.com/repos/bbarkley/hammerspoon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bbarkley/hammerspoon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bbarkley/hammerspoon/git/refs{/sha}","trees_url":"https://api.github.com/repos/bbarkley/hammerspoon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bbarkley/hammerspoon/statuses/{sha}","languages_url":"https://api.github.com/repos/bbarkley/hammerspoon/languages","stargazers_url":"https://api.github.com/repos/bbarkley/hammerspoon/stargazers","contributors_url":"https://api.github.com/repos/bbarkley/hammerspoon/contributors","subscribers_url":"https://api.github.com/repos/bbarkley/hammerspoon/subscribers","subscription_url":"https://api.github.com/repos/bbarkley/hammerspoon/subscription","commits_url":"https://api.github.com/repos/bbarkley/hammerspoon/commits{/sha}","git_commits_url":"https://api.github.com/repos/bbarkley/hammerspoon/git/commits{/sha}","comments_url":"https://api.github.com/repos/bbarkley/hammerspoon/comments{/number}","issue_comment_url":"https://api.github.com/repos/bbarkley/hammerspoon/issues/comments{/number}","contents_url":"https://api.github.com/repos/bbarkley/hammerspoon/contents/{+path}","compare_url":"https://api.github.com/repos/bbarkley/hammerspoon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bbarkley/hammerspoon/merges","archive_url":"https://api.github.com/repos/bbarkley/hammerspoon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bbarkley/hammerspoon/downloads","issues_url":"https://api.github.com/repos/bbarkley/hammerspoon/issues{/number}","pulls_url":"https://api.github.com/repos/bbarkley/hammerspoon/pulls{/number}","milestones_url":"https://api.github.com/repos/bbarkley/hammerspoon/milestones{/number}","notifications_url":"https://api.github.com/repos/bbarkley/hammerspoon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bbarkley/hammerspoon/labels{/name}","releases_url":"https://api.github.com/repos/bbarkley/hammerspoon/releases{/id}","created_at":"2015-07-29T22:18:50Z","updated_at":"2015-07-29T22:18:52Z","pushed_at":"2015-07-29T22:49:30Z","git_url":"git://github.com/bbarkley/hammerspoon.git","ssh_url":"git@github.com:bbarkley/hammerspoon.git","clone_url":"https://github.com/bbarkley/hammerspoon.git","svn_url":"https://github.com/bbarkley/hammerspoon","homepage":"http://www.hammerspoon.org","size":17898,"stargazers_count":0,"watchers_count":0,"language":"C","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":"Hammerspoon:master","ref":"master","sha":"cbdfeca75fff9949ab039e4e3ffca16b2c895372","user":{"login":"Hammerspoon","id":9214848,"avatar_url":"https://avatars.githubusercontent.com/u/9214848?v=3","gravatar_id":"","url":"https://api.github.com/users/Hammerspoon","html_url":"https://github.com/Hammerspoon","followers_url":"https://api.github.com/users/Hammerspoon/followers","following_url":"https://api.github.com/users/Hammerspoon/following{/other_user}","gists_url":"https://api.github.com/users/Hammerspoon/gists{/gist_id}","starred_url":"https://api.github.com/users/Hammerspoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hammerspoon/subscriptions","organizations_url":"https://api.github.com/users/Hammerspoon/orgs","repos_url":"https://api.github.com/users/Hammerspoon/repos","events_url":"https://api.github.com/users/Hammerspoon/events{/privacy}","received_events_url":"https://api.github.com/users/Hammerspoon/received_events","type":"Organization","site_admin":false},"repo":{"id":24956772,"name":"hammerspoon","full_name":"Hammerspoon/hammerspoon","owner":{"login":"Hammerspoon","id":9214848,"avatar_url":"https://avatars.githubusercontent.com/u/9214848?v=3","gravatar_id":"","url":"https://api.github.com/users/Hammerspoon","html_url":"https://github.com/Hammerspoon","followers_url":"https://api.github.com/users/Hammerspoon/followers","following_url":"https://api.github.com/users/Hammerspoon/following{/other_user}","gists_url":"https://api.github.com/users/Hammerspoon/gists{/gist_id}","starred_url":"https://api.github.com/users/Hammerspoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hammerspoon/subscriptions","organizations_url":"https://api.github.com/users/Hammerspoon/orgs","repos_url":"https://api.github.com/users/Hammerspoon/repos","events_url":"https://api.github.com/users/Hammerspoon/events{/privacy}","received_events_url":"https://api.github.com/users/Hammerspoon/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Hammerspoon/hammerspoon","description":"Staggeringly powerful OS X desktop automation with Lua","fork":false,"url":"https://api.github.com/repos/Hammerspoon/hammerspoon","forks_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/forks","keys_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/teams","hooks_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/hooks","issue_events_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/events{/number}","events_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/events","assignees_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/assignees{/user}","branches_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/branches{/branch}","tags_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/tags","blobs_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/git/refs{/sha}","trees_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/statuses/{sha}","languages_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/languages","stargazers_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/stargazers","contributors_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/contributors","subscribers_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/subscribers","subscription_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/subscription","commits_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/commits{/sha}","git_commits_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/git/commits{/sha}","comments_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/comments{/number}","issue_comment_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/comments{/number}","contents_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/contents/{+path}","compare_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/merges","archive_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/downloads","issues_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues{/number}","pulls_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/pulls{/number}","milestones_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/milestones{/number}","notifications_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/labels{/name}","releases_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/releases{/id}","created_at":"2014-10-08T19:24:44Z","updated_at":"2015-07-29T22:00:55Z","pushed_at":"2015-07-29T22:59:53Z","git_url":"git://github.com/Hammerspoon/hammerspoon.git","ssh_url":"git@github.com:Hammerspoon/hammerspoon.git","clone_url":"https://github.com/Hammerspoon/hammerspoon.git","svn_url":"https://github.com/Hammerspoon/hammerspoon","homepage":"http://www.hammerspoon.org","size":17898,"stargazers_count":367,"watchers_count":367,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":43,"mirror_url":null,"open_issues_count":88,"forks":43,"open_issues":88,"watchers":367,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Hammerspoon/hammerspoon/pulls/433"},"html":{"href":"https://github.com/Hammerspoon/hammerspoon/pull/433"},"issue":{"href":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/433"},"comments":{"href":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/433/comments"},"review_comments":{"href":"https://api.github.com/repos/Hammerspoon/hammerspoon/pulls/433/comments"},"review_comment":{"href":"https://api.github.com/repos/Hammerspoon/hammerspoon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Hammerspoon/hammerspoon/pulls/433/commits"},"statuses":{"href":"https://api.github.com/repos/Hammerspoon/hammerspoon/statuses/752f1324edbfa0427d6154229482d002dbc4c165"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":76,"deletions":1,"changed_files":2}}