triangle: Remove input keys to change window size, this was just a test

This commit is contained in:
foxnne 2024-11-27 11:37:49 -06:00 committed by Emi Gutekanst
parent 0546c3d5ca
commit 319f2d8fb8

View file

@ -69,13 +69,6 @@ pub fn init(
pub fn tick(app: *App, core: *mach.Core) void { pub fn tick(app: *App, core: *mach.Core) void {
while (core.nextEvent()) |event| { while (core.nextEvent()) |event| {
switch (event) { switch (event) {
.key_press => |ev| {
switch (ev.key) {
.right => core.windows.set(core.main_window, .width, core.windows.get(core.main_window, .width).? + 10),
.left => core.windows.set(core.main_window, .width, core.windows.get(core.main_window, .width).? - 10),
else => {},
}
},
.close => core.exit(), .close => core.exit(),
else => {}, else => {},
} }