w merge by me <3

This commit is contained in:
Harrison DiAmbrosio 2025-11-25 16:02:25 -05:00
commit b3b83fd287
11 changed files with 220 additions and 45 deletions

View file

@ -9,6 +9,7 @@ const Fs = @import("fs.zig");
const Input = @import("input.zig");
const Api = @import("api.zig");
const View = @import("view.zig");
const Hook = @import("hook.zig");
const gpa = std.heap.c_allocator;
@ -65,6 +66,11 @@ pub fn init(self: *Lua) !void {
self.state.newLib(input_funcs);
self.state.setField(-2, "input");
}
{
const hook_funcs = zlua.fnRegsFromType(Hook);
self.state.newLib(hook_funcs);
self.state.setField(-2, "hook");
}
{
const api_funcs = zlua.fnRegsFromType(Api);
self.state.newLib(api_funcs);