mirror of
https://github.com/MezzalunaWM/Mezzaluna.git
synced 2026-03-08 04:57:32 -04:00
inital support for hooks...
Currently the following hooks are available: - WinMapPre - WinMapPost
This commit is contained in:
parent
b45544c97a
commit
b3322eeb90
7 changed files with 193 additions and 0 deletions
|
|
@ -8,6 +8,7 @@ const Bridge = @import("bridge.zig");
|
|||
const Fs = @import("fs.zig");
|
||||
const Input = @import("input.zig");
|
||||
const Api = @import("api.zig");
|
||||
const Hook = @import("hook.zig");
|
||||
|
||||
const gpa = std.heap.c_allocator;
|
||||
|
||||
|
|
@ -64,6 +65,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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue