mirror of
https://github.com/bdnugget/raylib-zig.git
synced 2026-11-07 06:07:27 +00:00
Make KeyboardKey a non-exhaustive enum to avoid crashes with unmapped keys. (#319)
Make KeyboardKey a non-exhaustive enum
This commit is contained in:
1 parent
9d9daa7127
commit
67d4311b42
2 files changed
+2
No files matched your search
@@ -1839,6 +1839,7 @@ pub const KeyboardKey = enum(c_int) {
|
||||
//menu = 82,
|
||||
volume_up = 24,
|
||||
volume_down = 25,
|
||||
_,
|
||||
};
|
||||
|
||||
pub const MouseButton = enum(c_int) {
|
||||
|
||||
@@ -1839,6 +1839,7 @@ pub const KeyboardKey = enum(c_int) {
|
||||
//menu = 82,
|
||||
volume_up = 24,
|
||||
volume_down = 25,
|
||||
_,
|
||||
};
|
||||
|
||||
pub const MouseButton = enum(c_int) {
|
||||
|
||||
Reference in new issue
Block a user