{"action":"created","comment":{"url":"https://api.github.com/repos/highfidelity/hifi/pulls/comments/32546792","id":32546792,"diff_hunk":"@@ -590,3 +613,143 @@ void SixenseManager::emulateMouse(PalmData* palm, int index) {\n \n #endif  // HAVE_SIXENSE\n \n+void SixenseManager::focusOutEvent() {\n+    _axisStateMap.clear();\n+    _buttonPressedMap.clear();\n+};\n+\n+void SixenseManager::handleAxisEvent(float stickX, float stickY, float trigger, int index) {\n+    _axisStateMap[makeInput(AXIS_Y_POS, index).getChannel()] = (stickY > 0) ? stickY : 0.0f;\n+    _axisStateMap[makeInput(AXIS_Y_NEG, index).getChannel()] = (stickY < 0) ? -stickY : 0.0f;\n+    _axisStateMap[makeInput(AXIS_X_POS, index).getChannel()] = (stickX > 0) ? stickX : 0.0f;\n+    _axisStateMap[makeInput(AXIS_X_NEG, index).getChannel()] = (stickX < 0) ? -stickX : 0.0f;\n+    _axisStateMap[makeInput(BACK_TRIGGER, index).getChannel()] = trigger;","path":"interface/src/devices/SixenseManager.cpp","position":99,"original_position":99,"commit_id":"1ecc954656aa8acf41c611bd2884da9557b366ac","original_commit_id":"4090fd6aa1013fb7043e7054d7e7122c0b243eb4","user":{"login":"AndrewMeadows","id":2186405,"avatar_url":"https://avatars.githubusercontent.com/u/2186405?v=3","gravatar_id":"","url":"https://api.github.com/users/AndrewMeadows","html_url":"https://github.com/AndrewMeadows","followers_url":"https://api.github.com/users/AndrewMeadows/followers","following_url":"https://api.github.com/users/AndrewMeadows/following{/other_user}","gists_url":"https://api.github.com/users/AndrewMeadows/gists{/gist_id}","starred_url":"https://api.github.com/users/AndrewMeadows/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndrewMeadows/subscriptions","organizations_url":"https://api.github.com/users/AndrewMeadows/orgs","repos_url":"https://api.github.com/users/AndrewMeadows/repos","events_url":"https://api.github.com/users/AndrewMeadows/events{/privacy}","received_events_url":"https://api.github.com/users/AndrewMeadows/received_events","type":"User","site_admin":false},"body":"stickY and stickX should test against **0.0f** rather than **0** (Section 3.5.3).","created_at":"2015-06-16T17:25:41Z","updated_at":"2015-06-16T17:25:41Z","html_url":"https://github.com/highfidelity/hifi/pull/5129#discussion_r32546792","pull_request_url":"https://api.github.com/repos/highfidelity/hifi/pulls/5129","_links":{"self":{"href":"https://api.github.com/repos/highfidelity/hifi/pulls/comments/32546792"},"html":{"href":"https://github.com/highfidelity/hifi/pull/5129#discussion_r32546792"},"pull_request":{"href":"https://api.github.com/repos/highfidelity/hifi/pulls/5129"}}},"pull_request":{"url":"https://api.github.com/repos/highfidelity/hifi/pulls/5129","id":37720861,"html_url":"https://github.com/highfidelity/hifi/pull/5129","diff_url":"https://github.com/highfidelity/hifi/pull/5129.diff","patch_url":"https://github.com/highfidelity/hifi/pull/5129.patch","issue_url":"https://api.github.com/repos/highfidelity/hifi/issues/5129","number":5129,"state":"open","locked":false,"title":"Integrating gamepads/hydras to input mapping system, zooming","user":{"login":"SamGondelman","id":7650116,"avatar_url":"https://avatars.githubusercontent.com/u/7650116?v=3","gravatar_id":"","url":"https://api.github.com/users/SamGondelman","html_url":"https://github.com/SamGondelman","followers_url":"https://api.github.com/users/SamGondelman/followers","following_url":"https://api.github.com/users/SamGondelman/following{/other_user}","gists_url":"https://api.github.com/users/SamGondelman/gists{/gist_id}","starred_url":"https://api.github.com/users/SamGondelman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamGondelman/subscriptions","organizations_url":"https://api.github.com/users/SamGondelman/orgs","repos_url":"https://api.github.com/users/SamGondelman/repos","events_url":"https://api.github.com/users/SamGondelman/events{/privacy}","received_events_url":"https://api.github.com/users/SamGondelman/received_events","type":"User","site_admin":false},"body":"Default key mapping support for gamepads and hydras without need for gamepad.js and hydraMove.js\r\n\r\nAbility to easily remap key bindings for gamepads and hydras\r\n\r\nSupport for remappable zooming (shift + w/s on keyboard, back triggers on gamepads, left 3/1 buttons on hydra), snaps to first person if you zoom in enough\r\n\r\nSome hydra events are still forwarded back to the application as mouse events which will likely be changed in the future, but for right now, \"mouse\" behavior with the hydras shouldn't have changed","created_at":"2015-06-15T18:28:37Z","updated_at":"2015-06-16T17:25:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"06a70db06559245bbf2d0b79229c1a42df32403c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/highfidelity/hifi/pulls/5129/commits","review_comments_url":"https://api.github.com/repos/highfidelity/hifi/pulls/5129/comments","review_comment_url":"https://api.github.com/repos/highfidelity/hifi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/highfidelity/hifi/issues/5129/comments","statuses_url":"https://api.github.com/repos/highfidelity/hifi/statuses/1ecc954656aa8acf41c611bd2884da9557b366ac","head":{"label":"SamGondelman:master","ref":"master","sha":"1ecc954656aa8acf41c611bd2884da9557b366ac","user":{"login":"SamGondelman","id":7650116,"avatar_url":"https://avatars.githubusercontent.com/u/7650116?v=3","gravatar_id":"","url":"https://api.github.com/users/SamGondelman","html_url":"https://github.com/SamGondelman","followers_url":"https://api.github.com/users/SamGondelman/followers","following_url":"https://api.github.com/users/SamGondelman/following{/other_user}","gists_url":"https://api.github.com/users/SamGondelman/gists{/gist_id}","starred_url":"https://api.github.com/users/SamGondelman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamGondelman/subscriptions","organizations_url":"https://api.github.com/users/SamGondelman/orgs","repos_url":"https://api.github.com/users/SamGondelman/repos","events_url":"https://api.github.com/users/SamGondelman/events{/privacy}","received_events_url":"https://api.github.com/users/SamGondelman/received_events","type":"User","site_admin":false},"repo":{"id":36534104,"name":"hifi","full_name":"SamGondelman/hifi","owner":{"login":"SamGondelman","id":7650116,"avatar_url":"https://avatars.githubusercontent.com/u/7650116?v=3","gravatar_id":"","url":"https://api.github.com/users/SamGondelman","html_url":"https://github.com/SamGondelman","followers_url":"https://api.github.com/users/SamGondelman/followers","following_url":"https://api.github.com/users/SamGondelman/following{/other_user}","gists_url":"https://api.github.com/users/SamGondelman/gists{/gist_id}","starred_url":"https://api.github.com/users/SamGondelman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamGondelman/subscriptions","organizations_url":"https://api.github.com/users/SamGondelman/orgs","repos_url":"https://api.github.com/users/SamGondelman/repos","events_url":"https://api.github.com/users/SamGondelman/events{/privacy}","received_events_url":"https://api.github.com/users/SamGondelman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SamGondelman/hifi","description":"Open source software for shared virtual worlds using HMDs and dynamically assigned devices as servers.  San Francisco based startup, we are hiring: http://highfidelity.com/jobs  Documentation at http://docs.highfidelity.com  Contribute by reporting bugs & doing jobs on http://worklist.net","fork":true,"url":"https://api.github.com/repos/SamGondelman/hifi","forks_url":"https://api.github.com/repos/SamGondelman/hifi/forks","keys_url":"https://api.github.com/repos/SamGondelman/hifi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SamGondelman/hifi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SamGondelman/hifi/teams","hooks_url":"https://api.github.com/repos/SamGondelman/hifi/hooks","issue_events_url":"https://api.github.com/repos/SamGondelman/hifi/issues/events{/number}","events_url":"https://api.github.com/repos/SamGondelman/hifi/events","assignees_url":"https://api.github.com/repos/SamGondelman/hifi/assignees{/user}","branches_url":"https://api.github.com/repos/SamGondelman/hifi/branches{/branch}","tags_url":"https://api.github.com/repos/SamGondelman/hifi/tags","blobs_url":"https://api.github.com/repos/SamGondelman/hifi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SamGondelman/hifi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SamGondelman/hifi/git/refs{/sha}","trees_url":"https://api.github.com/repos/SamGondelman/hifi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SamGondelman/hifi/statuses/{sha}","languages_url":"https://api.github.com/repos/SamGondelman/hifi/languages","stargazers_url":"https://api.github.com/repos/SamGondelman/hifi/stargazers","contributors_url":"https://api.github.com/repos/SamGondelman/hifi/contributors","subscribers_url":"https://api.github.com/repos/SamGondelman/hifi/subscribers","subscription_url":"https://api.github.com/repos/SamGondelman/hifi/subscription","commits_url":"https://api.github.com/repos/SamGondelman/hifi/commits{/sha}","git_commits_url":"https://api.github.com/repos/SamGondelman/hifi/git/commits{/sha}","comments_url":"https://api.github.com/repos/SamGondelman/hifi/comments{/number}","issue_comment_url":"https://api.github.com/repos/SamGondelman/hifi/issues/comments{/number}","contents_url":"https://api.github.com/repos/SamGondelman/hifi/contents/{+path}","compare_url":"https://api.github.com/repos/SamGondelman/hifi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SamGondelman/hifi/merges","archive_url":"https://api.github.com/repos/SamGondelman/hifi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SamGondelman/hifi/downloads","issues_url":"https://api.github.com/repos/SamGondelman/hifi/issues{/number}","pulls_url":"https://api.github.com/repos/SamGondelman/hifi/pulls{/number}","milestones_url":"https://api.github.com/repos/SamGondelman/hifi/milestones{/number}","notifications_url":"https://api.github.com/repos/SamGondelman/hifi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SamGondelman/hifi/labels{/name}","releases_url":"https://api.github.com/repos/SamGondelman/hifi/releases{/id}","created_at":"2015-05-29T23:20:11Z","updated_at":"2015-05-29T23:20:15Z","pushed_at":"2015-06-16T17:25:38Z","git_url":"git://github.com/SamGondelman/hifi.git","ssh_url":"git@github.com:SamGondelman/hifi.git","clone_url":"https://github.com/SamGondelman/hifi.git","svn_url":"https://github.com/SamGondelman/hifi","homepage":"","size":158431,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"highfidelity:master","ref":"master","sha":"0b4d4c24d49f7c24297ed2f60deda3e99bae69cd","user":{"login":"highfidelity","id":1565370,"avatar_url":"https://avatars.githubusercontent.com/u/1565370?v=3","gravatar_id":"","url":"https://api.github.com/users/highfidelity","html_url":"https://github.com/highfidelity","followers_url":"https://api.github.com/users/highfidelity/followers","following_url":"https://api.github.com/users/highfidelity/following{/other_user}","gists_url":"https://api.github.com/users/highfidelity/gists{/gist_id}","starred_url":"https://api.github.com/users/highfidelity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/highfidelity/subscriptions","organizations_url":"https://api.github.com/users/highfidelity/orgs","repos_url":"https://api.github.com/users/highfidelity/repos","events_url":"https://api.github.com/users/highfidelity/events{/privacy}","received_events_url":"https://api.github.com/users/highfidelity/received_events","type":"Organization","site_admin":false},"repo":{"id":5372872,"name":"hifi","full_name":"highfidelity/hifi","owner":{"login":"highfidelity","id":1565370,"avatar_url":"https://avatars.githubusercontent.com/u/1565370?v=3","gravatar_id":"","url":"https://api.github.com/users/highfidelity","html_url":"https://github.com/highfidelity","followers_url":"https://api.github.com/users/highfidelity/followers","following_url":"https://api.github.com/users/highfidelity/following{/other_user}","gists_url":"https://api.github.com/users/highfidelity/gists{/gist_id}","starred_url":"https://api.github.com/users/highfidelity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/highfidelity/subscriptions","organizations_url":"https://api.github.com/users/highfidelity/orgs","repos_url":"https://api.github.com/users/highfidelity/repos","events_url":"https://api.github.com/users/highfidelity/events{/privacy}","received_events_url":"https://api.github.com/users/highfidelity/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/highfidelity/hifi","description":"Open source software for shared virtual worlds using HMDs and dynamically assigned devices as servers.  San Francisco based startup, we are hiring: http://highfidelity.com/jobs  Documentation at http://docs.highfidelity.com  Contribute by reporting bugs & doing jobs on http://worklist.net","fork":false,"url":"https://api.github.com/repos/highfidelity/hifi","forks_url":"https://api.github.com/repos/highfidelity/hifi/forks","keys_url":"https://api.github.com/repos/highfidelity/hifi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/highfidelity/hifi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/highfidelity/hifi/teams","hooks_url":"https://api.github.com/repos/highfidelity/hifi/hooks","issue_events_url":"https://api.github.com/repos/highfidelity/hifi/issues/events{/number}","events_url":"https://api.github.com/repos/highfidelity/hifi/events","assignees_url":"https://api.github.com/repos/highfidelity/hifi/assignees{/user}","branches_url":"https://api.github.com/repos/highfidelity/hifi/branches{/branch}","tags_url":"https://api.github.com/repos/highfidelity/hifi/tags","blobs_url":"https://api.github.com/repos/highfidelity/hifi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/highfidelity/hifi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/highfidelity/hifi/git/refs{/sha}","trees_url":"https://api.github.com/repos/highfidelity/hifi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/highfidelity/hifi/statuses/{sha}","languages_url":"https://api.github.com/repos/highfidelity/hifi/languages","stargazers_url":"https://api.github.com/repos/highfidelity/hifi/stargazers","contributors_url":"https://api.github.com/repos/highfidelity/hifi/contributors","subscribers_url":"https://api.github.com/repos/highfidelity/hifi/subscribers","subscription_url":"https://api.github.com/repos/highfidelity/hifi/subscription","commits_url":"https://api.github.com/repos/highfidelity/hifi/commits{/sha}","git_commits_url":"https://api.github.com/repos/highfidelity/hifi/git/commits{/sha}","comments_url":"https://api.github.com/repos/highfidelity/hifi/comments{/number}","issue_comment_url":"https://api.github.com/repos/highfidelity/hifi/issues/comments{/number}","contents_url":"https://api.github.com/repos/highfidelity/hifi/contents/{+path}","compare_url":"https://api.github.com/repos/highfidelity/hifi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/highfidelity/hifi/merges","archive_url":"https://api.github.com/repos/highfidelity/hifi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/highfidelity/hifi/downloads","issues_url":"https://api.github.com/repos/highfidelity/hifi/issues{/number}","pulls_url":"https://api.github.com/repos/highfidelity/hifi/pulls{/number}","milestones_url":"https://api.github.com/repos/highfidelity/hifi/milestones{/number}","notifications_url":"https://api.github.com/repos/highfidelity/hifi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/highfidelity/hifi/labels{/name}","releases_url":"https://api.github.com/repos/highfidelity/hifi/releases{/id}","created_at":"2012-08-10T18:26:22Z","updated_at":"2015-06-11T10:17:07Z","pushed_at":"2015-06-16T17:25:39Z","git_url":"git://github.com/highfidelity/hifi.git","ssh_url":"git@github.com:highfidelity/hifi.git","clone_url":"https://github.com/highfidelity/hifi.git","svn_url":"https://github.com/highfidelity/hifi","homepage":"","size":211237,"stargazers_count":276,"watchers_count":276,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":157,"mirror_url":null,"open_issues_count":56,"forks":157,"open_issues":56,"watchers":276,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/highfidelity/hifi/pulls/5129"},"html":{"href":"https://github.com/highfidelity/hifi/pull/5129"},"issue":{"href":"https://api.github.com/repos/highfidelity/hifi/issues/5129"},"comments":{"href":"https://api.github.com/repos/highfidelity/hifi/issues/5129/comments"},"review_comments":{"href":"https://api.github.com/repos/highfidelity/hifi/pulls/5129/comments"},"review_comment":{"href":"https://api.github.com/repos/highfidelity/hifi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/highfidelity/hifi/pulls/5129/commits"},"statuses":{"href":"https://api.github.com/repos/highfidelity/hifi/statuses/1ecc954656aa8acf41c611bd2884da9557b366ac"}}}}