From 510213bcf354b285d7bc5210e58fbe70f5c21932 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sun, 15 Jan 2023 17:17:39 +0100 Subject: Zig 0.10 compatibility --- README.md | 2 +- src/inputs.zig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 73dbb27..e0307ba 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Since [learning zig](https://www.adyxax.org/blog/2022/08/22/learning-the-zig-pro ## Dependencies -zig is required. Only zig version >= 0.9.1 on linux amd64 (Gentoo) is being regularly tested. +zig is required. Only zig version >= 0.10.0 on linux amd64 (Gentoo) is being regularly tested. On top of that the wasm4 runtime (which I installed from npm) is required, version >= 2.5.3. diff --git a/src/inputs.zig b/src/inputs.zig index 7a5e706..a2ab59e 100644 --- a/src/inputs.zig +++ b/src/inputs.zig @@ -6,7 +6,7 @@ const w4 = @import("wasm4.zig"); pub const Buttons = packed struct { x: bool = false, y: bool = false, - _: u2, + _: u2 = 0, left: bool = false, right: bool = false, up: bool = false, -- cgit v1.2.3