{"id":13413167,"url":"https://github.com/0xcafed00d/joystick","last_synced_at":"2026-01-14T23:00:08.502Z","repository":{"id":35376626,"uuid":"39639858","full_name":"0xcafed00d/joystick","owner":"0xcafed00d","description":"Go Joystick API","archived":false,"fork":false,"pushed_at":"2023-04-19T19:26:36.000Z","size":34,"stargazers_count":69,"open_issues_count":3,"forks_count":19,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-14T21:58:19.883Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/0xcafed00d.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}},"created_at":"2015-07-24T14:51:47.000Z","updated_at":"2025-07-13T17:43:56.000Z","dependencies_parsed_at":"2024-01-08T15:34:37.114Z","dependency_job_id":null,"html_url":"https://github.com/0xcafed00d/joystick","commit_stats":{"total_commits":40,"total_committers":8,"mean_commits":5.0,"dds":0.475,"last_synced_commit":"28212e3b5a8fedb3ee041a0d8f5e49ffb9c19653"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/0xcafed00d/joystick","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xcafed00d%2Fjoystick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xcafed00d%2Fjoystick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xcafed00d%2Fjoystick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xcafed00d%2Fjoystick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xcafed00d","download_url":"https://codeload.github.com/0xcafed00d/joystick/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xcafed00d%2Fjoystick/sbom","scorecard":{"id":705,"data":{"date":"2025-08-11","repo":{"name":"github.com/0xcafed00d/joystick","commit":"28212e3b5a8fedb3ee041a0d8f5e49ffb9c19653"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":1,"reason":"Found 4/25 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 9 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-14T12:27:17.585Z","repository_id":35376626,"created_at":"2025-08-14T12:27:17.585Z","updated_at":"2025-08-14T12:27:17.585Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28437915,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T22:37:52.437Z","status":"ssl_error","status_checked_at":"2026-01-14T22:37:31.496Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-07-30T20:01:34.393Z","updated_at":"2026-01-14T23:00:08.398Z","avatar_url":"https://github.com/0xcafed00d.png","language":"Go","funding_links":[],"categories":["Relational Databases","Hardware","硬件"],"sub_categories":["Tutorials","Search and Analytic Databases","检索及分析资料库","Advanced Console UIs"],"readme":"# joystick\nGo Joystick API\n\n[![GoDoc](https://godoc.org/github.com/0xcafed00d/joystick?status.svg)](https://godoc.org/github.com/0xcafed00d/joystick) [![Build Status](https://travis-ci.org/0xcafed00d/joystick.svg)](https://travis-ci.org/0xcafed00d/joystick)\n\nPackage joystick implements a Polled API to read the state of an attached joystick.\nWindows, Linux \u0026 OSX are supported.\nPackage requires no external dependencies to be installed.\n\nMac OSX code developed by:  https://github.com/ledyba\n\n## Installation:\n```bash\n$ go get github.com/0xcafed00d/joystick/...\n```\n## Sample Program \n```bash\n$ go install github.com/0xcafed00d/joystick/joysticktest\n$ joysticktest 0\n```\nDisplays the state of the specified joystick\n## Example:\n```go\nimport \"github.com/0xcafed00d/joystick\"\n```\n```go\njs, err := joystick.Open(jsid)\nif err != nil {\n  panic(err)\n}\n\nfmt.Printf(\"Joystick Name: %s\", js.Name())\nfmt.Printf(\"   Axis Count: %d\", js.AxisCount())\nfmt.Printf(\" Button Count: %d\", js.ButtonCount())\n\nstate, err := joystick.Read()\nif err != nil {\n  panic(err)\n}\n\nfmt.Printf(\"Axis Data: %v\", state.AxisData)\njs.Close()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xcafed00d%2Fjoystick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xcafed00d%2Fjoystick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xcafed00d%2Fjoystick/lists"}