{"id":19883316,"url":"https://github.com/boombuler/hid","last_synced_at":"2025-05-02T14:33:15.947Z","repository":{"id":21038680,"uuid":"24335446","full_name":"boombuler/hid","owner":"boombuler","description":"golang HID API implementation","archived":false,"fork":false,"pushed_at":"2021-03-10T02:14:45.000Z","size":32,"stargazers_count":77,"open_issues_count":8,"forks_count":56,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T02:41:58.617Z","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/boombuler.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-22T16:02:47.000Z","updated_at":"2024-12-09T16:12:50.000Z","dependencies_parsed_at":"2022-08-17T16:11:25.031Z","dependency_job_id":null,"html_url":"https://github.com/boombuler/hid","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boombuler%2Fhid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boombuler%2Fhid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boombuler%2Fhid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boombuler%2Fhid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boombuler","download_url":"https://codeload.github.com/boombuler/hid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252053936,"owners_count":21687196,"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":[],"created_at":"2024-11-12T17:19:57.982Z","updated_at":"2025-05-02T14:33:15.646Z","avatar_url":"https://github.com/boombuler.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HID\n\nA [GO](http://golang.org) package to access Human Interface Devices.\nThe platform specific parts of this package are heavily based on\n[Signal 11 - HIDAPI](https://github.com/signal11/hidapi).\n\n### Supported operating systems\n\nThe following operating systems are supported targets \n(as used by [*$GOOS* environment variable](https://golang.org/doc/install/source#environment))\n\n* darwin (uses native IOKit framework)\n* linux (uses libusb 1.0+)\n* windows (uses native Windows HID library)\n\n##### Known quirks for building on Windows 64bit\n\nFor building this HID package, you need to have a gcc.exe in your *%PATH%* environment variable.\nThere are two tested GCC toolchains: [tdm-gcc](http://tdm-gcc.tdragon.net/)\nand [mingw-w64](http://mingw-w64.yaxm.org/). At the moment (March 2015), both toolchains\nare missing some declarations in header files, which will result in the following error message,\nwhen running the ```go build```:\n\n```\nD:\\projects.go\\src\\github.com\\boombuler\\hid\u003e go build -v -work\nWORK=C:\\Users\\xxx\\AppData\\Local\\Temp\\go-build011586055\ngithub.com/boombuler/hid\n# github.com/boombuler/hid\ncould not determine kind of name for C.HidD_FreePreparsedData\ncould not determine kind of name for C.HidD_GetPreparsedData\n```\n\nThe solutions is simple: just add these four lines to your gcc toolchain header file ```hidsdi.h```\n````C\n/* http://msdn.microsoft.com/en-us/library/windows/hardware/ff538893(v=vs.85).aspx */\nHIDAPI BOOLEAN NTAPI HidD_FreePreparsedData(PHIDP_PREPARSED_DATA PreparsedData);\n\n/* http://msdn.microsoft.com/en-us/library/windows/hardware/ff539679(v=vs.85).aspx */\nHIDAPI BOOLEAN NTAPI HidD_GetPreparsedData(HANDLE HidDeviceObject, PHIDP_PREPARSED_DATA *PreparsedData);\n````\nDepending on your gcc toolchain installation folder, the files are located in\n\n``` C:\\TDM-GCC-64\\x86_64-w64-mingw32\\include\\hidsdi.h ```\n\nor\n\n``` c:\\mingw-w64\\x86_64-4.9.2-win32-seh-rt_v3-rev1\\mingw64\\x86_64-w64-mingw32\\include\\hidsdi.h ```\n\nAfter patching the header file, this package will compile.\nFuture releases of the gcc toolchains will surely fix this issue.\n\n### License\n\n[![License: MIT](https://img.shields.io/:license-MIT-blue.svg)](http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboombuler%2Fhid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboombuler%2Fhid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboombuler%2Fhid/lists"}