{"action":"created","comment":{"url":"https://api.github.com/repos/HaxeFlixel/flixel/pulls/comments/73339161","id":73339161,"diff_hunk":"@@ -59,6 +61,49 @@ class HTML5FrontEnd\n \t{\n \t\treturn Browser.window.innerHeight;\n \t}\n+\t\n+\tprivate inline function get_platform():FlxPlatform\n+\t{\n+\t\t\n+\t\tif (Browser.navigator.userAgent.indexOf(\"Win\") > -1)","path":"flixel/system/frontEnds/HTML5FrontEnd.hx","position":26,"original_position":26,"commit_id":"c57766beb8ccf8e0e17cb70f81afdacc52499877","original_commit_id":"c57766beb8ccf8e0e17cb70f81afdacc52499877","user":{"login":"Gama11","id":2620907,"avatar_url":"https://avatars.githubusercontent.com/u/2620907?v=3","gravatar_id":"","url":"https://api.github.com/users/Gama11","html_url":"https://github.com/Gama11","followers_url":"https://api.github.com/users/Gama11/followers","following_url":"https://api.github.com/users/Gama11/following{/other_user}","gists_url":"https://api.github.com/users/Gama11/gists{/gist_id}","starred_url":"https://api.github.com/users/Gama11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gama11/subscriptions","organizations_url":"https://api.github.com/users/Gama11/orgs","repos_url":"https://api.github.com/users/Gama11/repos","events_url":"https://api.github.com/users/Gama11/events{/privacy}","received_events_url":"https://api.github.com/users/Gama11/received_events","type":"User","site_admin":false},"body":"Oh, and instead of `indexOf()` you can use `.contains()` via `using flixel.util.FlxStringUtil`.","created_at":"2016-08-03T13:37:20Z","updated_at":"2016-08-03T13:37:20Z","html_url":"https://github.com/HaxeFlixel/flixel/pull/1897#discussion_r73339161","pull_request_url":"https://api.github.com/repos/HaxeFlixel/flixel/pulls/1897","_links":{"self":{"href":"https://api.github.com/repos/HaxeFlixel/flixel/pulls/comments/73339161"},"html":{"href":"https://github.com/HaxeFlixel/flixel/pull/1897#discussion_r73339161"},"pull_request":{"href":"https://api.github.com/repos/HaxeFlixel/flixel/pulls/1897"}}},"pull_request":{"url":"https://api.github.com/repos/HaxeFlixel/flixel/pulls/1897","id":79883285,"html_url":"https://github.com/HaxeFlixel/flixel/pull/1897","diff_url":"https://github.com/HaxeFlixel/flixel/pull/1897.diff","patch_url":"https://github.com/HaxeFlixel/flixel/pull/1897.patch","issue_url":"https://api.github.com/repos/HaxeFlixel/flixel/issues/1897","number":1897,"state":"open","locked":false,"title":"HTML5FrontEnd: Add platform and mobile detection","user":{"login":"DleanJeans","id":12462089,"avatar_url":"https://avatars.githubusercontent.com/u/12462089?v=3","gravatar_id":"","url":"https://api.github.com/users/DleanJeans","html_url":"https://github.com/DleanJeans","followers_url":"https://api.github.com/users/DleanJeans/followers","following_url":"https://api.github.com/users/DleanJeans/following{/other_user}","gists_url":"https://api.github.com/users/DleanJeans/gists{/gist_id}","starred_url":"https://api.github.com/users/DleanJeans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DleanJeans/subscriptions","organizations_url":"https://api.github.com/users/DleanJeans/orgs","repos_url":"https://api.github.com/users/DleanJeans/repos","events_url":"https://api.github.com/users/DleanJeans/events{/privacy}","received_events_url":"https://api.github.com/users/DleanJeans/received_events","type":"User","site_admin":false},"body":"I added `platform` and `isMobile` variables to `FlxG.html5`.\r\nTested on Windows and Android. Not sure about the others. Here's a [test](https://dleanjeans.github.io/flixel-html5-platform-test/).","created_at":"2016-08-03T10:32:24Z","updated_at":"2016-08-03T13:37:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b3f407c4349cba036c7d77aca88e46530f2a6c8f","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/HaxeFlixel/flixel/milestones/9","html_url":"https://github.com/HaxeFlixel/flixel/milestones/4.2.0","labels_url":"https://api.github.com/repos/HaxeFlixel/flixel/milestones/9/labels","id":1725556,"number":9,"title":"4.2.0","description":"","creator":{"login":"Gama11","id":2620907,"avatar_url":"https://avatars.githubusercontent.com/u/2620907?v=3","gravatar_id":"","url":"https://api.github.com/users/Gama11","html_url":"https://github.com/Gama11","followers_url":"https://api.github.com/users/Gama11/followers","following_url":"https://api.github.com/users/Gama11/following{/other_user}","gists_url":"https://api.github.com/users/Gama11/gists{/gist_id}","starred_url":"https://api.github.com/users/Gama11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gama11/subscriptions","organizations_url":"https://api.github.com/users/Gama11/orgs","repos_url":"https://api.github.com/users/Gama11/repos","events_url":"https://api.github.com/users/Gama11/events{/privacy}","received_events_url":"https://api.github.com/users/Gama11/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":0,"state":"open","created_at":"2016-04-22T16:27:06Z","updated_at":"2016-08-03T13:35:11Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/HaxeFlixel/flixel/pulls/1897/commits","review_comments_url":"https://api.github.com/repos/HaxeFlixel/flixel/pulls/1897/comments","review_comment_url":"https://api.github.com/repos/HaxeFlixel/flixel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HaxeFlixel/flixel/issues/1897/comments","statuses_url":"https://api.github.com/repos/HaxeFlixel/flixel/statuses/c57766beb8ccf8e0e17cb70f81afdacc52499877","head":{"label":"DleanJeans:html5-mobile-detection","ref":"html5-mobile-detection","sha":"c57766beb8ccf8e0e17cb70f81afdacc52499877","user":{"login":"DleanJeans","id":12462089,"avatar_url":"https://avatars.githubusercontent.com/u/12462089?v=3","gravatar_id":"","url":"https://api.github.com/users/DleanJeans","html_url":"https://github.com/DleanJeans","followers_url":"https://api.github.com/users/DleanJeans/followers","following_url":"https://api.github.com/users/DleanJeans/following{/other_user}","gists_url":"https://api.github.com/users/DleanJeans/gists{/gist_id}","starred_url":"https://api.github.com/users/DleanJeans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DleanJeans/subscriptions","organizations_url":"https://api.github.com/users/DleanJeans/orgs","repos_url":"https://api.github.com/users/DleanJeans/repos","events_url":"https://api.github.com/users/DleanJeans/events{/privacy}","received_events_url":"https://api.github.com/users/DleanJeans/received_events","type":"User","site_admin":false},"repo":{"id":64663158,"name":"flixel","full_name":"DleanJeans/flixel","owner":{"login":"DleanJeans","id":12462089,"avatar_url":"https://avatars.githubusercontent.com/u/12462089?v=3","gravatar_id":"","url":"https://api.github.com/users/DleanJeans","html_url":"https://github.com/DleanJeans","followers_url":"https://api.github.com/users/DleanJeans/followers","following_url":"https://api.github.com/users/DleanJeans/following{/other_user}","gists_url":"https://api.github.com/users/DleanJeans/gists{/gist_id}","starred_url":"https://api.github.com/users/DleanJeans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DleanJeans/subscriptions","organizations_url":"https://api.github.com/users/DleanJeans/orgs","repos_url":"https://api.github.com/users/DleanJeans/repos","events_url":"https://api.github.com/users/DleanJeans/events{/privacy}","received_events_url":"https://api.github.com/users/DleanJeans/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DleanJeans/flixel","description":"Free, cross-platform 2D game engine powered by Haxe and OpenFL","fork":true,"url":"https://api.github.com/repos/DleanJeans/flixel","forks_url":"https://api.github.com/repos/DleanJeans/flixel/forks","keys_url":"https://api.github.com/repos/DleanJeans/flixel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DleanJeans/flixel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DleanJeans/flixel/teams","hooks_url":"https://api.github.com/repos/DleanJeans/flixel/hooks","issue_events_url":"https://api.github.com/repos/DleanJeans/flixel/issues/events{/number}","events_url":"https://api.github.com/repos/DleanJeans/flixel/events","assignees_url":"https://api.github.com/repos/DleanJeans/flixel/assignees{/user}","branches_url":"https://api.github.com/repos/DleanJeans/flixel/branches{/branch}","tags_url":"https://api.github.com/repos/DleanJeans/flixel/tags","blobs_url":"https://api.github.com/repos/DleanJeans/flixel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DleanJeans/flixel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DleanJeans/flixel/git/refs{/sha}","trees_url":"https://api.github.com/repos/DleanJeans/flixel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DleanJeans/flixel/statuses/{sha}","languages_url":"https://api.github.com/repos/DleanJeans/flixel/languages","stargazers_url":"https://api.github.com/repos/DleanJeans/flixel/stargazers","contributors_url":"https://api.github.com/repos/DleanJeans/flixel/contributors","subscribers_url":"https://api.github.com/repos/DleanJeans/flixel/subscribers","subscription_url":"https://api.github.com/repos/DleanJeans/flixel/subscription","commits_url":"https://api.github.com/repos/DleanJeans/flixel/commits{/sha}","git_commits_url":"https://api.github.com/repos/DleanJeans/flixel/git/commits{/sha}","comments_url":"https://api.github.com/repos/DleanJeans/flixel/comments{/number}","issue_comment_url":"https://api.github.com/repos/DleanJeans/flixel/issues/comments{/number}","contents_url":"https://api.github.com/repos/DleanJeans/flixel/contents/{+path}","compare_url":"https://api.github.com/repos/DleanJeans/flixel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DleanJeans/flixel/merges","archive_url":"https://api.github.com/repos/DleanJeans/flixel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DleanJeans/flixel/downloads","issues_url":"https://api.github.com/repos/DleanJeans/flixel/issues{/number}","pulls_url":"https://api.github.com/repos/DleanJeans/flixel/pulls{/number}","milestones_url":"https://api.github.com/repos/DleanJeans/flixel/milestones{/number}","notifications_url":"https://api.github.com/repos/DleanJeans/flixel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DleanJeans/flixel/labels{/name}","releases_url":"https://api.github.com/repos/DleanJeans/flixel/releases{/id}","deployments_url":"https://api.github.com/repos/DleanJeans/flixel/deployments","created_at":"2016-08-01T11:58:13Z","updated_at":"2016-08-01T11:58:17Z","pushed_at":"2016-08-03T10:29:44Z","git_url":"git://github.com/DleanJeans/flixel.git","ssh_url":"git@github.com:DleanJeans/flixel.git","clone_url":"https://github.com/DleanJeans/flixel.git","svn_url":"https://github.com/DleanJeans/flixel","homepage":"http://www.haxeflixel.com/","size":19145,"stargazers_count":0,"watchers_count":0,"language":"Haxe","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":"dev"}},"base":{"label":"HaxeFlixel:dev","ref":"dev","sha":"5f76de62e281d27abb8e2f1e7c16f786ee3b7e97","user":{"login":"HaxeFlixel","id":4309553,"avatar_url":"https://avatars.githubusercontent.com/u/4309553?v=3","gravatar_id":"","url":"https://api.github.com/users/HaxeFlixel","html_url":"https://github.com/HaxeFlixel","followers_url":"https://api.github.com/users/HaxeFlixel/followers","following_url":"https://api.github.com/users/HaxeFlixel/following{/other_user}","gists_url":"https://api.github.com/users/HaxeFlixel/gists{/gist_id}","starred_url":"https://api.github.com/users/HaxeFlixel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HaxeFlixel/subscriptions","organizations_url":"https://api.github.com/users/HaxeFlixel/orgs","repos_url":"https://api.github.com/users/HaxeFlixel/repos","events_url":"https://api.github.com/users/HaxeFlixel/events{/privacy}","received_events_url":"https://api.github.com/users/HaxeFlixel/received_events","type":"Organization","site_admin":false},"repo":{"id":2101031,"name":"flixel","full_name":"HaxeFlixel/flixel","owner":{"login":"HaxeFlixel","id":4309553,"avatar_url":"https://avatars.githubusercontent.com/u/4309553?v=3","gravatar_id":"","url":"https://api.github.com/users/HaxeFlixel","html_url":"https://github.com/HaxeFlixel","followers_url":"https://api.github.com/users/HaxeFlixel/followers","following_url":"https://api.github.com/users/HaxeFlixel/following{/other_user}","gists_url":"https://api.github.com/users/HaxeFlixel/gists{/gist_id}","starred_url":"https://api.github.com/users/HaxeFlixel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HaxeFlixel/subscriptions","organizations_url":"https://api.github.com/users/HaxeFlixel/orgs","repos_url":"https://api.github.com/users/HaxeFlixel/repos","events_url":"https://api.github.com/users/HaxeFlixel/events{/privacy}","received_events_url":"https://api.github.com/users/HaxeFlixel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HaxeFlixel/flixel","description":"Free, cross-platform 2D game engine powered by Haxe and OpenFL","fork":false,"url":"https://api.github.com/repos/HaxeFlixel/flixel","forks_url":"https://api.github.com/repos/HaxeFlixel/flixel/forks","keys_url":"https://api.github.com/repos/HaxeFlixel/flixel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HaxeFlixel/flixel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HaxeFlixel/flixel/teams","hooks_url":"https://api.github.com/repos/HaxeFlixel/flixel/hooks","issue_events_url":"https://api.github.com/repos/HaxeFlixel/flixel/issues/events{/number}","events_url":"https://api.github.com/repos/HaxeFlixel/flixel/events","assignees_url":"https://api.github.com/repos/HaxeFlixel/flixel/assignees{/user}","branches_url":"https://api.github.com/repos/HaxeFlixel/flixel/branches{/branch}","tags_url":"https://api.github.com/repos/HaxeFlixel/flixel/tags","blobs_url":"https://api.github.com/repos/HaxeFlixel/flixel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HaxeFlixel/flixel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HaxeFlixel/flixel/git/refs{/sha}","trees_url":"https://api.github.com/repos/HaxeFlixel/flixel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HaxeFlixel/flixel/statuses/{sha}","languages_url":"https://api.github.com/repos/HaxeFlixel/flixel/languages","stargazers_url":"https://api.github.com/repos/HaxeFlixel/flixel/stargazers","contributors_url":"https://api.github.com/repos/HaxeFlixel/flixel/contributors","subscribers_url":"https://api.github.com/repos/HaxeFlixel/flixel/subscribers","subscription_url":"https://api.github.com/repos/HaxeFlixel/flixel/subscription","commits_url":"https://api.github.com/repos/HaxeFlixel/flixel/commits{/sha}","git_commits_url":"https://api.github.com/repos/HaxeFlixel/flixel/git/commits{/sha}","comments_url":"https://api.github.com/repos/HaxeFlixel/flixel/comments{/number}","issue_comment_url":"https://api.github.com/repos/HaxeFlixel/flixel/issues/comments{/number}","contents_url":"https://api.github.com/repos/HaxeFlixel/flixel/contents/{+path}","compare_url":"https://api.github.com/repos/HaxeFlixel/flixel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HaxeFlixel/flixel/merges","archive_url":"https://api.github.com/repos/HaxeFlixel/flixel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HaxeFlixel/flixel/downloads","issues_url":"https://api.github.com/repos/HaxeFlixel/flixel/issues{/number}","pulls_url":"https://api.github.com/repos/HaxeFlixel/flixel/pulls{/number}","milestones_url":"https://api.github.com/repos/HaxeFlixel/flixel/milestones{/number}","notifications_url":"https://api.github.com/repos/HaxeFlixel/flixel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HaxeFlixel/flixel/labels{/name}","releases_url":"https://api.github.com/repos/HaxeFlixel/flixel/releases{/id}","deployments_url":"https://api.github.com/repos/HaxeFlixel/flixel/deployments","created_at":"2011-07-25T13:12:48Z","updated_at":"2016-08-03T11:27:14Z","pushed_at":"2016-08-03T10:32:24Z","git_url":"git://github.com/HaxeFlixel/flixel.git","ssh_url":"git@github.com:HaxeFlixel/flixel.git","clone_url":"https://github.com/HaxeFlixel/flixel.git","svn_url":"https://github.com/HaxeFlixel/flixel","homepage":"http://www.haxeflixel.com/","size":32011,"stargazers_count":888,"watchers_count":888,"language":"Haxe","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":218,"mirror_url":null,"open_issues_count":121,"forks":218,"open_issues":121,"watchers":888,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/HaxeFlixel/flixel/pulls/1897"},"html":{"href":"https://github.com/HaxeFlixel/flixel/pull/1897"},"issue":{"href":"https://api.github.com/repos/HaxeFlixel/flixel/issues/1897"},"comments":{"href":"https://api.github.com/repos/HaxeFlixel/flixel/issues/1897/comments"},"review_comments":{"href":"https://api.github.com/repos/HaxeFlixel/flixel/pulls/1897/comments"},"review_comment":{"href":"https://api.github.com/repos/HaxeFlixel/flixel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HaxeFlixel/flixel/pulls/1897/commits"},"statuses":{"href":"https://api.github.com/repos/HaxeFlixel/flixel/statuses/c57766beb8ccf8e0e17cb70f81afdacc52499877"}}}}
{"actor":{"display_login":"Gama11"}}