fix nixpkgs to 25.11, update to new zig api

This commit is contained in:
2025-12-01 10:00:33 +01:00
parent ce2d957a88
commit b0707744e2
3 changed files with 13 additions and 9 deletions

View File

@@ -47,10 +47,10 @@ fn uinputWriteKey(uinput_dev: *c.libevdev_uinput, key: u16) !void {
const pressKey = c.input_event{ .type = c.EV_KEY, .code = key, .value = 1, .time = undefined };
const releaseKey = c.input_event{ .type = c.EV_KEY, .code = key, .value = 0, .time = undefined };
const sync = c.input_event{ .type = c.EV_SYN, .code = c.SYN_REPORT, .value = 0, .time = undefined };
std.time.sleep(20000);
std.Thread.sleep(20 * std.time.ns_per_ms);
try uinputWrite(uinput_dev, &pressKey);
try uinputWrite(uinput_dev, &sync);
std.time.sleep(20000);
std.Thread.sleep(20 * std.time.ns_per_ms);
try uinputWrite(uinput_dev, &releaseKey);
}