diff --git a/src/main.zig b/src/main.zig index ceb794a..e9b484f 100644 --- a/src/main.zig +++ b/src/main.zig @@ -22,7 +22,7 @@ fn event_equal(e1: *const c.input_event, e2: *const c.input_event) bool { } fn event_write(event: *const c.input_event) !void { - if (c.libevdev_uinput_write_event(@ptrCast(uidev), event.*.type, event.*.code, event.*.value) < 0) { + if (c.libevdev_uinput_write_event(@ptrCast(uidev), event.type, event.code, event.value) < 0) { return error.writeFailed; } }