diff options
Diffstat (limited to 'src/output.zig')
| -rw-r--r-- | src/output.zig | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/output.zig b/src/output.zig index be3b3dd..b2368d8 100644 --- a/src/output.zig +++ b/src/output.zig @@ -63,7 +63,7 @@ pub const WindowOutput = struct { self.constants.textureShader.bind(); self.constants.normalizedQuad.draw(); - + c.glfwSwapBuffers(self.*.window); return false; } @@ -74,11 +74,10 @@ pub const WindowOutput = struct { c.glfwDestroyWindow(self.*.window); } - extern fn keyCallback(win: ?*c.GLFWwindow, key: c_int, scancode: c_int, action: c_int, mods: c_int) callconv(.C) void { + fn keyCallback(win: ?*c.GLFWwindow, key: c_int, scancode: c_int, action: c_int, mods: c_int) callconv(.C) void { if (action != c.GLFW_PRESS) return; const self = @ptrCast(*WindowOutput, @alignCast(@alignOf(WindowOutput), c.glfwGetWindowUserPointer(win).?)); - std.debug.warn("key pressed: {}\n", .{ key }); switch (key) { // c.GLFW_KEY_F => // toggle fullscreen // c.GLFW_KEY_LEFT => // cycle through monitors |
