implement keymaps! they still have quite a bit of work to be any good...

but now our key do stuff when pressed (at the compositor level)
This commit is contained in:
Squibid 2025-10-23 23:24:49 -04:00
parent 8e4f56d147
commit faa44dc4af
Signed by: squibid
GPG key ID: BECE5684D3C4005D
8 changed files with 163 additions and 13 deletions

View file

@ -6,6 +6,7 @@ const zlua = @import("zlua");
const Bridge = @import("bridge.zig");
const Fs = @import("fs.zig");
const Api = @import("api.zig");
const gpa = std.heap.c_allocator;
@ -53,10 +54,15 @@ pub fn init(self: *Lua) !void {
defer _ = self.state.setField(-2, "path");
}
{
const funcs = zlua.fnRegsFromType(Fs);
self.state.newLib(funcs);
const fs_funcs = zlua.fnRegsFromType(Fs);
self.state.newLib(fs_funcs);
self.state.setField(-2, "fs");
}
{
const api_funcs = zlua.fnRegsFromType(Api);
self.state.newLib(api_funcs);
self.state.setField(-2, "api");
}
}
loadRuntimeDir(self) catch |err| {