Make KeyboardKey a non-exhaustive enum to avoid crashes with unmapped keys. (#319)

Make KeyboardKey a non-exhaustive enum
This commit is contained in:
Jairo Correa authored and GitHub committed 2026-04-03 12:28:54 +02:00
1 parent cd71c85d57
commit 99863b20b4
1 file changed
+1
+1
View File
@@ -1819,6 +1819,7 @@ pub const KeyboardKey = enum(c_int) {
//menu = 82,
volume_up = 24,
volume_down = 25,
_,
};
pub const MouseButton = enum(c_int) {