{"id":15717759,"url":"https://github.com/jasonjmcghee/trackpad_haptic","last_synced_at":"2025-04-13T21:35:49.896Z","repository":{"id":242156894,"uuid":"808838062","full_name":"jasonjmcghee/trackpad_haptic","owner":"jasonjmcghee","description":"A simple interface into controlling the mac trackpad haptic feedback from rust.","archived":false,"fork":false,"pushed_at":"2024-06-01T17:03:11.000Z","size":11,"stargazers_count":23,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T11:51:19.586Z","etag":null,"topics":["accessibility","haptic","haptic-feedback","haptics","mac","macos","rust","trackpad"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/jasonjmcghee.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}},"created_at":"2024-06-01T00:03:00.000Z","updated_at":"2025-02-10T07:55:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"ab9cb66e-4b2f-45ec-b523-5e4e640ef99f","html_url":"https://github.com/jasonjmcghee/trackpad_haptic","commit_stats":null,"previous_names":["jasonjmcghee/trackpad_haptic"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonjmcghee%2Ftrackpad_haptic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonjmcghee%2Ftrackpad_haptic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonjmcghee%2Ftrackpad_haptic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonjmcghee%2Ftrackpad_haptic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jasonjmcghee","download_url":"https://codeload.github.com/jasonjmcghee/trackpad_haptic/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248788337,"owners_count":21161723,"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","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":["accessibility","haptic","haptic-feedback","haptics","mac","macos","rust","trackpad"],"created_at":"2024-10-03T21:51:12.509Z","updated_at":"2025-04-13T21:35:49.867Z","avatar_url":"https://github.com/jasonjmcghee.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trackpad Haptic Feedback on Mac\n\n[![Crates.io](https://img.shields.io/crates/v/trackpad_haptic.svg)](https://crates.io/crates/trackpad_haptic)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/jasonjmcghee/trackpad_haptic#license)\n\nA simple interface into controlling the mac trackpad haptic feedback from rust.\n\nI've provided an example of producing morse code.\n\n```bash\ncargo run --example morse\n```\n\n## Usage\n\n\n\n```rust\nuse trackpad_haptic::{Feedback, FeedbackManager};\n\nfn main() {\n    let haptic_manager = FeedbackManager::default();\n    loop {\n        // Shortest possible\n        haptic_manager.trigger();\n        thread::sleep(Duration::from_secs(1));\n\n        // 1 second of continuous feedback\n        let length_millis = 1000;\n        let delay_millis = 1000;\n        haptic_manager.trigger_with_feedback(\n            Feedback::new(length_millis, delay_millis)\n        );\n    }\n}\n```\n\n\n## License\n\n* [MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonjmcghee%2Ftrackpad_haptic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjasonjmcghee%2Ftrackpad_haptic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonjmcghee%2Ftrackpad_haptic/lists"}