From 99863b20b4cf84c61fc061dc4384b9e98b590fd3 Mon Sep 17 00:00:00 2001 From: Jairo Correa Date: Fri, 3 Apr 2026 07:28:54 -0300 Subject: [PATCH] Make KeyboardKey a non-exhaustive enum to avoid crashes with unmapped keys. (#319) Make KeyboardKey a non-exhaustive enum --- lib/raylib.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/raylib.zig b/lib/raylib.zig index 37b79da..8423cb0 100644 --- a/lib/raylib.zig +++ b/lib/raylib.zig @@ -1819,6 +1819,7 @@ pub const KeyboardKey = enum(c_int) { //menu = 82, volume_up = 24, volume_down = 25, + _, }; pub const MouseButton = enum(c_int) {