ref(input): move mouse.zig and key.zig into public input.zig namespace
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 1m41s
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 1m41s
This commit is contained in:
1 parent
e2f9408850
commit
f66a870223
8 files changed
+121
-107
No files matched your search
@@ -119,9 +119,9 @@ pub fn main() !void {
|
||||
.quit => break,
|
||||
.resize => |size| try renderer.resize(size),
|
||||
.key => |key| {
|
||||
if (key.matches(.{ .cp = 'q' })) app.quit();
|
||||
if (key.eql(.{ .cp = 'q' })) app.quit();
|
||||
|
||||
if (key.matches(.{ .cp = 'n', .mod = .{ .ctrl = true } })) {
|
||||
if (key.eql(.{ .cp = 'n', .mod = .{ .ctrl = true } })) {
|
||||
try app.interrupt();
|
||||
defer app.start() catch @panic("could not start app event loop");
|
||||
var child = std.process.Child.init(&.{"hx"}, allocator);
|
||||
|
||||
Reference in new issue
Block a user