{"action":"created","comment":{"url":"https://api.github.com/repos/LeapTeam/MineLeapMod/pulls/comments/46081931","id":46081931,"diff_hunk":"@@ -177,46 +173,52 @@ private static void DrawRetical()\n \r\n \tprivate static void UpdateInGameCamera()\r\n \t{\r\n-\t\tif (mc.thePlayer != null)\r\n+\t\tif (mc.thePlayer != null && ControllerSettings.isLeapMotionEnabled())\r\n \t\t{\r\n+\t\t\tLeapMotionMouse lmm = ControllerSettings.getLeapMotionMouse();\r\n \t\t\tif (lastFlansModCheckValue)\r\n \t\t\t{\r\n-\t\t\t\tif (LeapMotionMouse.pollAxis(false))\r\n+\t\t\t\tif (lmm.pollAxis(false))\r\n \t\t\t\t{\r\n \t\t\t\t\tfloat multiplier = 4f * mc.gameSettings.mouseSensitivity;\r\n \t\t\t\t\tVirtualMouse.moveMouse(\r\n-\t\t\t\t\t\t\t(int) (LeapMotionMouse.deltaX * multiplier),\r\n-\t\t\t\t\t\t\t(int) (LeapMotionMouse.deltaY * multiplier));\r\n+\t\t\t\t\t\t\t(int) (lmm.deltaX * multiplier),\r\n+\t\t\t\t\t\t\t(int) (lmm.deltaY * multiplier));\r\n \t\t\t\t}\r\n \t\t\t\telse\r\n \t\t\t\t{\r\n \t\t\t\t\tVirtualMouse.moveMouse(0, 0);\r\n \t\t\t\t}\r\n \t\t\t}\r\n-\t\t\telse if (LeapMotionMouse.pollAxis(false))\r\n+\t\t\telse if (lmm.pollAxis(false))\r\n \t\t\t{\r\n-\t\t\t\tmc.thePlayer.setAngles(LeapMotionMouse.deltaX, LeapMotionMouse.deltaY);\r\n+\t\t\t\tmc.thePlayer.setAngles(lmm.deltaX, lmm.deltaY);\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \r\n \tprivate static void HandleDragAndScrolling()\r\n \t{\r\n-\r\n-\t\tif (VirtualMouse.isButtonDown(0) || VirtualMouse.isButtonDown(1))\r\n-\t\t{\r\n-\t\t\t// VirtualMouse.moveMouse(LeapMotionMouse.getmcX(), LeapMotionMouse.getmcY());\r\n-\t\t\tMcGuiHelper.guiMouseDrag(LeapMotionMouse.getX(), LeapMotionMouse.getY());\r\n-\t\t\tVirtualMouse.setMouseButton(LeapMotionMouse.isLeftButtonDown() ? 0 : 1, true);\r\n-\t\t}\r\n+//\t\tif (ControllerSettings.isLeapMotionEnabled())\r\n+//\t\t{\r\n+//\t\t\tLeapMotionMouse lmm = ControllerSettings.getLeapMotionMouse();\r\n+//\t\t\tif (VirtualMouse.isButtonDown(0) || VirtualMouse.isButtonDown(1))\r\n+//\t\t\t{\r\n+//\t\t\t\t// VirtualMouse.moveMouse(LeapMotionMouse.getmcX(), LeapMotionMouse.getmcY());\r\n+//\t\t\t\tMcGuiHelper.guiMouseDrag(lmm.getX(), lmm.getY());\r\n+//\t\t\t\tVirtualMouse.setMouseButton(lmm.isLeftButtonDown() ? 0 : 1, true);\r\n+//\t\t\t}\r\n+//\t\t}\r","path":"MineLeapMod/src/com/nautigsam/mineleapmod/GameRenderHandler.java","position":159,"original_position":159,"commit_id":"2644d3c8679ac15399114703d614e113c454f6ff","original_commit_id":"2644d3c8679ac15399114703d614e113c454f6ff","user":{"login":"Nautigsam","id":7353930,"avatar_url":"https://avatars.githubusercontent.com/u/7353930?v=3","gravatar_id":"","url":"https://api.github.com/users/Nautigsam","html_url":"https://github.com/Nautigsam","followers_url":"https://api.github.com/users/Nautigsam/followers","following_url":"https://api.github.com/users/Nautigsam/following{/other_user}","gists_url":"https://api.github.com/users/Nautigsam/gists{/gist_id}","starred_url":"https://api.github.com/users/Nautigsam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nautigsam/subscriptions","organizations_url":"https://api.github.com/users/Nautigsam/orgs","repos_url":"https://api.github.com/users/Nautigsam/repos","events_url":"https://api.github.com/users/Nautigsam/events{/privacy}","received_events_url":"https://api.github.com/users/Nautigsam/received_events","type":"User","site_admin":false},"body":"I don't remember why it didn't work at some point, I will try to uncomment it later.","created_at":"2015-11-28T16:58:38Z","updated_at":"2015-11-28T16:58:38Z","html_url":"https://github.com/LeapTeam/MineLeapMod/pull/2#discussion_r46081931","pull_request_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/LeapTeam/MineLeapMod/pulls/comments/46081931"},"html":{"href":"https://github.com/LeapTeam/MineLeapMod/pull/2#discussion_r46081931"},"pull_request":{"href":"https://api.github.com/repos/LeapTeam/MineLeapMod/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/LeapTeam/MineLeapMod/pulls/2","id":52043552,"html_url":"https://github.com/LeapTeam/MineLeapMod/pull/2","diff_url":"https://github.com/LeapTeam/MineLeapMod/pull/2.diff","patch_url":"https://github.com/LeapTeam/MineLeapMod/pull/2.patch","issue_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/issues/2","number":2,"state":"open","locked":false,"title":"LeapJava.jar is now embedded. Added GUI elements to select path to na…","user":{"login":"Nautigsam","id":7353930,"avatar_url":"https://avatars.githubusercontent.com/u/7353930?v=3","gravatar_id":"","url":"https://api.github.com/users/Nautigsam","html_url":"https://github.com/Nautigsam","followers_url":"https://api.github.com/users/Nautigsam/followers","following_url":"https://api.github.com/users/Nautigsam/following{/other_user}","gists_url":"https://api.github.com/users/Nautigsam/gists{/gist_id}","starred_url":"https://api.github.com/users/Nautigsam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nautigsam/subscriptions","organizations_url":"https://api.github.com/users/Nautigsam/orgs","repos_url":"https://api.github.com/users/Nautigsam/repos","events_url":"https://api.github.com/users/Nautigsam/events{/privacy}","received_events_url":"https://api.github.com/users/Nautigsam/received_events","type":"User","site_admin":false},"body":"…tives libraries and load them on the fly. Refactor LeapMotionMouse to Singleton","created_at":"2015-11-28T16:25:07Z","updated_at":"2015-11-28T16:58:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b6695ece57c1b8afea9c3ca70258b04feba08453","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/pulls/2/commits","review_comments_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/pulls/2/comments","review_comment_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/issues/2/comments","statuses_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/statuses/2644d3c8679ac15399114703d614e113c454f6ff","head":{"label":"LeapTeam:refactor","ref":"refactor","sha":"2644d3c8679ac15399114703d614e113c454f6ff","user":{"login":"LeapTeam","id":14923177,"avatar_url":"https://avatars.githubusercontent.com/u/14923177?v=3","gravatar_id":"","url":"https://api.github.com/users/LeapTeam","html_url":"https://github.com/LeapTeam","followers_url":"https://api.github.com/users/LeapTeam/followers","following_url":"https://api.github.com/users/LeapTeam/following{/other_user}","gists_url":"https://api.github.com/users/LeapTeam/gists{/gist_id}","starred_url":"https://api.github.com/users/LeapTeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeapTeam/subscriptions","organizations_url":"https://api.github.com/users/LeapTeam/orgs","repos_url":"https://api.github.com/users/LeapTeam/repos","events_url":"https://api.github.com/users/LeapTeam/events{/privacy}","received_events_url":"https://api.github.com/users/LeapTeam/received_events","type":"Organization","site_admin":false},"repo":{"id":43883701,"name":"MineLeapMod","full_name":"LeapTeam/MineLeapMod","owner":{"login":"LeapTeam","id":14923177,"avatar_url":"https://avatars.githubusercontent.com/u/14923177?v=3","gravatar_id":"","url":"https://api.github.com/users/LeapTeam","html_url":"https://github.com/LeapTeam","followers_url":"https://api.github.com/users/LeapTeam/followers","following_url":"https://api.github.com/users/LeapTeam/following{/other_user}","gists_url":"https://api.github.com/users/LeapTeam/gists{/gist_id}","starred_url":"https://api.github.com/users/LeapTeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeapTeam/subscriptions","organizations_url":"https://api.github.com/users/LeapTeam/orgs","repos_url":"https://api.github.com/users/LeapTeam/repos","events_url":"https://api.github.com/users/LeapTeam/events{/privacy}","received_events_url":"https://api.github.com/users/LeapTeam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LeapTeam/MineLeapMod","description":"LeapMotion into Minecraft.","fork":false,"url":"https://api.github.com/repos/LeapTeam/MineLeapMod","forks_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/forks","keys_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/teams","hooks_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/hooks","issue_events_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/issues/events{/number}","events_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/events","assignees_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/assignees{/user}","branches_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/branches{/branch}","tags_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/tags","blobs_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/git/refs{/sha}","trees_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/statuses/{sha}","languages_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/languages","stargazers_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/stargazers","contributors_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/contributors","subscribers_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/subscribers","subscription_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/subscription","commits_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/commits{/sha}","git_commits_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/git/commits{/sha}","comments_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/comments{/number}","issue_comment_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/issues/comments{/number}","contents_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/contents/{+path}","compare_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/merges","archive_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/downloads","issues_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/issues{/number}","pulls_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/pulls{/number}","milestones_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/milestones{/number}","notifications_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/labels{/name}","releases_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/releases{/id}","created_at":"2015-10-08T11:23:07Z","updated_at":"2015-11-10T22:42:21Z","pushed_at":"2015-11-28T16:25:08Z","git_url":"git://github.com/LeapTeam/MineLeapMod.git","ssh_url":"git@github.com:LeapTeam/MineLeapMod.git","clone_url":"https://github.com/LeapTeam/MineLeapMod.git","svn_url":"https://github.com/LeapTeam/MineLeapMod","homepage":null,"size":1116,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"LeapTeam:master","ref":"master","sha":"666db43ec74b406143dc57efec9ff6454c4dad8f","user":{"login":"LeapTeam","id":14923177,"avatar_url":"https://avatars.githubusercontent.com/u/14923177?v=3","gravatar_id":"","url":"https://api.github.com/users/LeapTeam","html_url":"https://github.com/LeapTeam","followers_url":"https://api.github.com/users/LeapTeam/followers","following_url":"https://api.github.com/users/LeapTeam/following{/other_user}","gists_url":"https://api.github.com/users/LeapTeam/gists{/gist_id}","starred_url":"https://api.github.com/users/LeapTeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeapTeam/subscriptions","organizations_url":"https://api.github.com/users/LeapTeam/orgs","repos_url":"https://api.github.com/users/LeapTeam/repos","events_url":"https://api.github.com/users/LeapTeam/events{/privacy}","received_events_url":"https://api.github.com/users/LeapTeam/received_events","type":"Organization","site_admin":false},"repo":{"id":43883701,"name":"MineLeapMod","full_name":"LeapTeam/MineLeapMod","owner":{"login":"LeapTeam","id":14923177,"avatar_url":"https://avatars.githubusercontent.com/u/14923177?v=3","gravatar_id":"","url":"https://api.github.com/users/LeapTeam","html_url":"https://github.com/LeapTeam","followers_url":"https://api.github.com/users/LeapTeam/followers","following_url":"https://api.github.com/users/LeapTeam/following{/other_user}","gists_url":"https://api.github.com/users/LeapTeam/gists{/gist_id}","starred_url":"https://api.github.com/users/LeapTeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeapTeam/subscriptions","organizations_url":"https://api.github.com/users/LeapTeam/orgs","repos_url":"https://api.github.com/users/LeapTeam/repos","events_url":"https://api.github.com/users/LeapTeam/events{/privacy}","received_events_url":"https://api.github.com/users/LeapTeam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LeapTeam/MineLeapMod","description":"LeapMotion into Minecraft.","fork":false,"url":"https://api.github.com/repos/LeapTeam/MineLeapMod","forks_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/forks","keys_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/teams","hooks_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/hooks","issue_events_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/issues/events{/number}","events_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/events","assignees_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/assignees{/user}","branches_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/branches{/branch}","tags_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/tags","blobs_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/git/refs{/sha}","trees_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/statuses/{sha}","languages_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/languages","stargazers_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/stargazers","contributors_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/contributors","subscribers_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/subscribers","subscription_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/subscription","commits_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/commits{/sha}","git_commits_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/git/commits{/sha}","comments_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/comments{/number}","issue_comment_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/issues/comments{/number}","contents_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/contents/{+path}","compare_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/merges","archive_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/downloads","issues_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/issues{/number}","pulls_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/pulls{/number}","milestones_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/milestones{/number}","notifications_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/labels{/name}","releases_url":"https://api.github.com/repos/LeapTeam/MineLeapMod/releases{/id}","created_at":"2015-10-08T11:23:07Z","updated_at":"2015-11-10T22:42:21Z","pushed_at":"2015-11-28T16:25:08Z","git_url":"git://github.com/LeapTeam/MineLeapMod.git","ssh_url":"git@github.com:LeapTeam/MineLeapMod.git","clone_url":"https://github.com/LeapTeam/MineLeapMod.git","svn_url":"https://github.com/LeapTeam/MineLeapMod","homepage":null,"size":1116,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LeapTeam/MineLeapMod/pulls/2"},"html":{"href":"https://github.com/LeapTeam/MineLeapMod/pull/2"},"issue":{"href":"https://api.github.com/repos/LeapTeam/MineLeapMod/issues/2"},"comments":{"href":"https://api.github.com/repos/LeapTeam/MineLeapMod/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/LeapTeam/MineLeapMod/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/LeapTeam/MineLeapMod/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LeapTeam/MineLeapMod/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/LeapTeam/MineLeapMod/statuses/2644d3c8679ac15399114703d614e113c454f6ff"}}}}