From 166d621797e9e7070b4a26af07e78b2ab39c8ae7 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Fri, 16 Jul 2021 11:31:02 -0700 Subject: [PATCH] glfw: add key/button action constants Signed-off-by: Stephen Gutekanst --- glfw/src/main.zig | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/glfw/src/main.zig b/glfw/src/main.zig index 7c11a869..a8d67072 100644 --- a/glfw/src/main.zig +++ b/glfw/src/main.zig @@ -18,6 +18,15 @@ pub const version_minor = c.GLFW_VERSION_MINOR; // This is incremented when a bug fix release is made that does not contain any API changes. pub const version_revision = c.GLFW_VERSION_REVISION; +// The key or mouse button was released. +pub const release = C.GLFW_RELEASE + +// The key or mouse button was pressed. +pub const press = C.GLFW_RELEASE + +// The key was held down until it repeated. +pub const repeat = C.GLFW_REPEAT + pub fn basicTest() void { if (c.glfwInit() != c.GLFW_TRUE) { @panic("failed to init");