the rest of the events
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user