{"id":32019683,"url":"https://github.com/vddcore/hideous","last_synced_at":"2026-05-17T03:46:14.173Z","repository":{"id":192890271,"uuid":"687419408","full_name":"vddCore/Hideous","owner":"vddCore","description":"A simple, cross-platform C# USB HID abstraction library.","archived":false,"fork":false,"pushed_at":"2025-09-12T10:19:45.000Z","size":363,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T16:52:26.543Z","etag":null,"topics":["dotnet","dotnet-core","hidapi","usb","usb-hid","usb-hid-devices","usbhid"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vddCore.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2023-09-05T10:18:23.000Z","updated_at":"2025-09-12T10:19:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"9693e9b5-20c0-46b8-b75e-111cac975c7e","html_url":"https://github.com/vddCore/Hideous","commit_stats":null,"previous_names":["vddcore/hideous"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vddCore/Hideous","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vddCore%2FHideous","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vddCore%2FHideous/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vddCore%2FHideous/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vddCore%2FHideous/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vddCore","download_url":"https://codeload.github.com/vddCore/Hideous/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vddCore%2FHideous/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33127001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T18:38:32.183Z","status":"online","status_checked_at":"2026-05-17T02:00:05.366Z","response_time":107,"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":["dotnet","dotnet-core","hidapi","usb","usb-hid","usb-hid-devices","usbhid"],"created_at":"2025-10-16T03:56:22.019Z","updated_at":"2026-05-17T03:46:14.167Z","avatar_url":"https://github.com/vddCore.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Hideous\nUgly stuff made simple, at least.\n\nHideous is a library for .NET allowing users to interface with HID devices using a simple programming interface that doesn't require them to guess \"how the fuck do I use it\".\n\n### I'm a fuckwit - examples?\nSo am I, but I get you. Catch.\n\n#### Enumerating certain HID devices\n```Csharp\nusing Hideous;\n\nvar collection = new HidDeviceCollection(\n  vendorId: 0x0B05,\n  productId: 0x19B6\n);\n\nforeach (var device in collection) {\n  Console.WriteLine(device.Properties);\n}\n```\n\n#### Enumerating all HID devices\n```Csharp\nusing Hideous;\n\nvar collection = new HidDeviceCollection(); /* Same as (0, 0) */\n\nforeach (var device in collection) {\n  Console.WriteLine(device.Properties);\n}\n```\n\n#### Looking up a device by usage page\n```Csharp\nusing Hideous;\n\nvar collection = new HidDeviceCollection(0x0B05, 0x19B6);\nvar myDevice = collection.FirstOrDefault(x =\u003e x.Properties.UsagePage == 0xFF00);\n```\n\n#### Enumerating reports of a device\n```Csharp\nusing Hideous;\n\nvar collection = new HidDeviceCollection(0x0B05, 0x19B6);\nvar myDevice = collection.FirstOrDefault(\n    x =\u003e x.Properties.UsagePage == 0x0001\n      \u0026\u0026 x.Properties.UsageId == 0x0006\n);\n\nif (myDevice != null)\n{\n    myDevice.Connect();\n    \n    /* Descriptor only becomes valid AFTER connection was established. */\n    foreach (var report in myDevice.Descriptor.Reports)\n    {\n        Console.WriteLine(report);\n    }\n}\n```\n\n#### Reading a HID input report that has an ID\n```CSharp\nusing Hideous;\n\nvar collection = new HidDeviceCollection(0x0B05, 0x19B6);\nvar myDevice = collection.FirstOrDefault(\n    x =\u003e x.Properties.UsagePage == 0xFF31\n         \u0026\u0026 x.Properties.UsageId == 0x0076\n);\n\nif (myDevice != null)\n{\n    myDevice.Connect();\n\n    while (true)\n    {\n        var bytes = new byte[31];\n\n        /**\n         * 0x01 refers to the report ID,\n         * not its index in the collection.\n         *\n         * By default reads are non-blocking.\n         * To enforce blocking readsset\n         * myDevice.IsReadBlocking to `true`.\n         *\n         * This method doesn't require prefixing\n         * the data bytes with the report ID.\n         *\n         * The output byte array will be trimmed to the\n         * actual count of bytes read from the device.\n         *\n         * Same deal with Feature reports, but they have\n         * Set and Get methods accordingly.\n         **/\n        var readBytes = myDevice.Descriptor.InputReports[0x5D].Read(bytes);\n        foreach (var b in readBytes)\n        {\n            Console.WriteLine(b.ToString(\"X2\"));\n        }\n    }\n}\n```\n\n## Notes\nThe library currently supports Windows and Linux only - because of the natives extracted when the library first runs, you will find either `hidapi.dll` or `hidapi.so` if not already present.\n\nRequires HidApi \u003e= 0.14.0.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvddcore%2Fhideous","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvddcore%2Fhideous","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvddcore%2Fhideous/lists"}