zig-glfw/src/action.zig
Aksel Hjerpbakk 72d6debb35 fix key.press being set to release (#27)
A very minor fix to correct key.press being set to GLFW_RELEASE instead of GLFW_PRESS
2021-09-17 15:46:26 -07:00

12 lines
291 B
Zig

//! Key and button actions
const c = @import("c.zig").c;
/// 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_PRESS;
/// The key was held down until it repeated.
pub const repeat = c.GLFW_REPEAT;