This is hidapi, packaged for Zig.
First, update your build.zig.zon:
zig fetch --save git+https://github.com/allyourcodebase/hidapi.git
You can then import hidapi in your build.zig with:
const hidapi_dep = b.dependency("hidapi", .{
.target = target,
.optimize = optimize,
});
exe.root_module.linkLibrary(hidapi_dep.artifact("hidapi"));