Make the GLFW action enumerations proper Zig enums so one can use `.Name` syntax, etc. Helps #37 Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
15 lines
381 B
Zig
15 lines
381 B
Zig
//! Key and button actions
|
|
|
|
const c = @import("c.zig").c;
|
|
|
|
/// Holds all GLFW C action enumerations in their raw form.
|
|
pub const Action = enum(c_int) {
|
|
/// The key or mouse button was released.
|
|
release = c.GLFW_RELEASE,
|
|
|
|
/// The key or mouse button was pressed.
|
|
press = c.GLFW_PRESS,
|
|
|
|
/// The key was held down until it repeated.
|
|
repeat = c.GLFW_REPEAT,
|
|
};
|