shaderexp: update to latest mach/core API

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2023-01-25 10:26:58 -07:00 committed by Stephen Gutekanst
parent 40351f85ba
commit cf1e870688

View file

@ -92,7 +92,8 @@ pub fn deinit(app: *App) void {
} }
pub fn update(app: *App) !bool { pub fn update(app: *App) !bool {
while (app.core.pollEvents()) |event| { var iter = app.core.pollEvents();
while (iter.next()) |event| {
switch (event) { switch (event) {
.key_press => |ev| { .key_press => |ev| {
if (ev.key == .space) return true; if (ev.key == .space) return true;