shaderexp: update to latest mach/core API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
40351f85ba
commit
cf1e870688
1 changed files with 2 additions and 1 deletions
|
|
@ -92,7 +92,8 @@ pub fn deinit(app: *App) void {
|
|||
}
|
||||
|
||||
pub fn update(app: *App) !bool {
|
||||
while (app.core.pollEvents()) |event| {
|
||||
var iter = app.core.pollEvents();
|
||||
while (iter.next()) |event| {
|
||||
switch (event) {
|
||||
.key_press => |ev| {
|
||||
if (ev.key == .space) return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue