the rest of the events

This commit is contained in:
David Allemang
2024-06-27 11:34:05 -04:00
parent 1eaf98973b
commit 07c96af5d7
3 changed files with 270 additions and 98 deletions

View File

@@ -102,10 +102,10 @@ pub fn main() !void {
// std.debug.print("Initialized!!\n", .{ });
while (!au.W.should_close()) {
au.wait_events();
// if (au.E.events.items.len > 0) {
// std.debug.print("Events: {any}\n", .{au.E.events.items});
// }
for (au.wait_events()) |event| switch (event) {
.charMods => |e| std.debug.print("{any}\n", .{e}),
.mouseButton => |e| std.debug.print("{any}\n", .{e}),
};
}
try au.D.deviceWaitIdle();