glfw: ziggify Joystick hat bitmasks
Helps hexops/mach#37 Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
210e12a437
commit
32fa90eca9
3 changed files with 66 additions and 31 deletions
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
const c = @import("c.zig").c;
|
||||
|
||||
// must be in sync with https://www.glfw.org/docs/3.3/group__mods.html
|
||||
// must be in sync with GLFW C constants in modifier group, search for "@defgroup mods Modifier key flags"
|
||||
/// A bitmask of all key modifiers
|
||||
pub const Mods = packed struct {
|
||||
shift: bool align(@alignOf(c_int)) = false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue