From fc4284e406da60b6d832811afb6eb69aa9e3ac42 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 12 Apr 2024 14:22:54 -0700 Subject: [PATCH] input: Key.Side needs a specific backing int for use in packed --- build.zig.zon | 4 ++-- src/input/key.zig | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.zig.zon b/build.zig.zon index a7481ebc1..92af56530 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -5,8 +5,8 @@ .dependencies = .{ // Zig libs .libxev = .{ - .url = "https://github.com/mitchellh/libxev/archive/322466ddd9b44c48882b5a1ca3646dc939787a01.tar.gz", - .hash = "1220d04bc291d323bbc7c12d1b6fb931647964c55583b0c23877ec6664a50d72613d", + .url = "https://github.com/mitchellh/libxev/archive/63e8dd89fae48e90fbd12469c2e3ff9415b832bf.tar.gz", + .hash = "1220f05bb06ce2704ae7b183514ce415719469bf1fa025b3158c55f7cc4755cb1fa5", }, .mach_glfw = .{ .url = "https://github.com/mitchellh/mach-glfw/archive/59bce0b739fd9444f3ff488289164b4aa6761f15.tar.gz", diff --git a/src/input/key.zig b/src/input/key.zig index 3f75e7e6e..7886d0b55 100644 --- a/src/input/key.zig +++ b/src/input/key.zig @@ -83,7 +83,7 @@ pub const Mods = packed struct(Mods.Backing) { super: Side = .left, }; - pub const Side = enum { left, right }; + pub const Side = enum(u1) { left, right }; /// Integer value of this struct. pub fn int(self: Mods) Backing {