all: use explicit backing integers for packed structs
This commit is contained in:
parent
4ebf238c5e
commit
266b651b34
9 changed files with 18 additions and 18 deletions
|
|
@ -362,14 +362,14 @@ pub const Key = enum {
|
|||
unknown,
|
||||
};
|
||||
|
||||
pub const KeyMods = packed struct {
|
||||
pub const KeyMods = packed struct(u8) {
|
||||
shift: bool,
|
||||
control: bool,
|
||||
alt: bool,
|
||||
super: bool,
|
||||
caps_lock: bool,
|
||||
num_lock: bool,
|
||||
_reserved: u2 = 0,
|
||||
_padding: u2 = 0,
|
||||
};
|
||||
|
||||
pub const DisplayMode = enum {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue