mirror of
https://github.com/MezzalunaWM/Mezzaluna.git
synced 2026-03-08 04:57:32 -04:00
update keymap func
This commit is contained in:
parent
23ef0049f7
commit
cc0862adae
5 changed files with 50 additions and 40 deletions
|
|
@ -6,7 +6,7 @@ const zlua = @import("zlua");
|
|||
|
||||
const Bridge = @import("bridge.zig");
|
||||
const Fs = @import("fs.zig");
|
||||
const Api = @import("api.zig");
|
||||
const Input = @import("input.zig");
|
||||
|
||||
const gpa = std.heap.c_allocator;
|
||||
|
||||
|
|
@ -59,9 +59,9 @@ pub fn init(self: *Lua) !void {
|
|||
self.state.setField(-2, "fs");
|
||||
}
|
||||
{
|
||||
const api_funcs = zlua.fnRegsFromType(Api);
|
||||
self.state.newLib(api_funcs);
|
||||
self.state.setField(-2, "api");
|
||||
const input_funcs = zlua.fnRegsFromType(Input);
|
||||
self.state.newLib(input_funcs);
|
||||
self.state.setField(-2, "input");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue