mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-06-07 20:34:29 +00:00
start input, its broken but we're getting there
This commit is contained in:
11
src/App.zig
11
src/App.zig
@@ -11,6 +11,7 @@ const build_config = @import("build_config.zig");
|
||||
const apprt = @import("apprt.zig");
|
||||
const Window = @import("Window.zig");
|
||||
const tracy = @import("tracy");
|
||||
const input = @import("input.zig");
|
||||
const Config = @import("config.zig").Config;
|
||||
const BlockingQueue = @import("./blocking_queue.zig").BlockingQueue;
|
||||
const renderer = @import("renderer.zig");
|
||||
@@ -412,4 +413,14 @@ pub const CAPI = struct {
|
||||
export fn ghostty_surface_set_content_scale(win: *Window, x: f64, y: f64) void {
|
||||
win.window.updateContentScale(x, y);
|
||||
}
|
||||
|
||||
/// Tell the surface that it needs to schedule a render
|
||||
export fn ghostty_surface_key(
|
||||
win: *Window,
|
||||
action: input.Action,
|
||||
key: input.Key,
|
||||
mods: input.Mods,
|
||||
) void {
|
||||
win.window.keyCallback(action, key, mods);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user