{"id":21299758,"url":"https://github.com/ericoporto/kejo","last_synced_at":"2025-09-03T00:49:24.406Z","repository":{"id":85939696,"uuid":"117170964","full_name":"ericoporto/kejo","owner":"ericoporto","description":"kejo.js 🧀 is keyboard and joystick unified library for games html5 games that already have touch/mouse handled.","archived":false,"fork":false,"pushed_at":"2020-06-07T21:56:58.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-03T00:49:23.585Z","etag":null,"topics":["es6","es6-modules","event","gamedev","gamepad","joystick","joystick-unified-library","js","keyboard","pooling"],"latest_commit_sha":null,"homepage":"http://ericoporto.github.io/kejo","language":"JavaScript","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/ericoporto.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-01-12T00:33:49.000Z","updated_at":"2020-06-07T21:57:01.000Z","dependencies_parsed_at":"2023-03-04T11:15:18.512Z","dependency_job_id":null,"html_url":"https://github.com/ericoporto/kejo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ericoporto/kejo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericoporto%2Fkejo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericoporto%2Fkejo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericoporto%2Fkejo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericoporto%2Fkejo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericoporto","download_url":"https://codeload.github.com/ericoporto/kejo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericoporto%2Fkejo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273372600,"owners_count":25093713,"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-09-02T02:00:09.530Z","response_time":77,"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":["es6","es6-modules","event","gamedev","gamepad","joystick","joystick-unified-library","js","keyboard","pooling"],"created_at":"2024-11-21T15:05:42.124Z","updated_at":"2025-09-03T00:49:24.397Z","avatar_url":"https://github.com/ericoporto.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kejo_js\nkejo.js is keyboard and joystick unified library for games html5 games that already have touch/mouse handled.\n\n# how to use\n\nYou have to import this module and instantiate it first.\n\n\n    import KeJo from './kejo.js'\n\n    var kejo = new KeJo\n\nWhenever a key is pressed `kejo_KeyPressed` event is emitted, and when it's released, `kejo_KeyReleased` is emitted. You can use event listeners on the window element.\n\n    window.addEventListener('kejo_KeyReleased',  writeKeyUp,false);\n    window.addEventListener('kejo_KeyPressed', writeKeyDown,false);\n\nThe key is passed as string under `event.detail` .\n\nAlternatively you can monitor the keys under your gameloop using the method `isPressed`.\n\n    if( kejo.isPressed(kejo.key.UP) ) {\n      ...\n    }\n\nThe possible keys by default are:\n\n    kejo.key.LEFT\n    kejo.key.UP\n    kejo.key.RIGHT\n    kejo.key.DOWN\n    kejo.key.BUTTONA\n    kejo.key.BUTTONB\n    kejo.key.BUTTONX\n    kejo.key.BUTTONY\n\n\n# Author\n\nMade by Érico Vieira Porto.\n\n# License\n\nDistributed under MIT license. See [`LICENSE`](https://github.com/ericoporto/kejo_js/blob/master/LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericoporto%2Fkejo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericoporto%2Fkejo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericoporto%2Fkejo/lists"}