cactusbento/libinput-zig
A Zig wrapper for libinput.
A libinput wrapper library for zig.
It packs a bunch of functions into various structs to make the resulting library more "ziggy".
Add the package url to build.zig.zon
and link libc, libinput, and libudev.
pub fn build(b: *std.Build) void {
const dep = b.dependency("libinput-zig", .{});
exe.root_module.addImport("libinput", dep.module());
}
Of course, you'll need both libinput and libudev installed on your system to build.