start input, its broken but we're getting there

This commit is contained in:
Mitchell Hashimoto
2023-02-17 22:12:03 -08:00
parent 074664398a
commit 573b163636
6 changed files with 199 additions and 5 deletions

View File

@@ -10,6 +10,7 @@ const assert = std.debug.assert;
const Allocator = std.mem.Allocator;
const objc = @import("objc");
const apprt = @import("../apprt.zig");
const input = @import("../input.zig");
const CoreApp = @import("../App.zig");
const CoreWindow = @import("../Window.zig");
@@ -143,4 +144,16 @@ pub const Window = struct {
return;
};
}
pub fn keyCallback(
self: *const Window,
action: input.Action,
key: input.Key,
mods: input.Mods,
) void {
self.core_win.keyCallback(action, key, mods) catch |err| {
log.err("error in key callback err={}", .{err});
return;
};
}
};