glfw: ziggify Joystick hat bitmasks

Helps hexops/mach#37

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2021-10-30 12:04:41 -07:00 committed by Stephen Gutekanst
parent 210e12a437
commit 32fa90eca9
3 changed files with 66 additions and 31 deletions

View file

@ -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,