{"id":21662880,"url":"https://github.com/ktravis/haxe-hardware","last_synced_at":"2025-08-21T07:43:31.876Z","repository":{"id":21094252,"uuid":"24394274","full_name":"ktravis/haxe-hardware","owner":"ktravis","description":"Simple OpenFL extension for accessing android device hardware methods.","archived":false,"fork":false,"pushed_at":"2021-07-03T10:00:13.000Z","size":213,"stargazers_count":19,"open_issues_count":1,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-05T21:34:01.370Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haxe","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ktravis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-24T00:13:40.000Z","updated_at":"2023-08-29T14:20:27.000Z","dependencies_parsed_at":"2022-09-19T03:10:39.048Z","dependency_job_id":null,"html_url":"https://github.com/ktravis/haxe-hardware","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ktravis/haxe-hardware","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktravis%2Fhaxe-hardware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktravis%2Fhaxe-hardware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktravis%2Fhaxe-hardware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktravis%2Fhaxe-hardware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ktravis","download_url":"https://codeload.github.com/ktravis/haxe-hardware/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktravis%2Fhaxe-hardware/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271447009,"owners_count":24761423,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-25T10:18:34.889Z","updated_at":"2025-08-21T07:43:31.826Z","avatar_url":"https://github.com/ktravis.png","language":"Haxe","funding_links":[],"categories":[],"sub_categories":[],"readme":"haxe-hardware\n=============\n\nSimple OpenFL extension for accessing android device hardware methods.\n\nCurrently implements methods to use the android vibrator and access screen\ndimensions.\n\nInstall via `haxelib git haxe-hardware https://github.com/ktravis/haxe-hardware`\n\nAdd to `project.xml`:\n\n    \u003chaxelib name=\"openfl\" /\u003e\n    \u003chaxelib name=\"haxe-hardware\" if=\"android\" /\u003e\n\nAnd import into your project (haxe) with:\n  \n    import Hardware;\n\nExposed methods are currently:\n\n    public static function vibrate(int duration):Void;\n    public static function getScreenWidth():Int;\n    public static function getScreenHeight():Int;\n    public static function wakeUp():Void;\n\nMore can be simply added in the java source file, replicating the function and\ncorresponding `JNI.createStaticMethod(...)` call in `Hardware.hx`.\n  \n### Contributions\n\nThank you to [alagator](https://github.com/alagatar) for contributing `wakeUp()`!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fktravis%2Fhaxe-hardware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fktravis%2Fhaxe-hardware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fktravis%2Fhaxe-hardware/lists"}