fix Window.zig
This commit is contained in:
parent
669b8e5fee
commit
3bd394d6bc
1 changed files with 0 additions and 1 deletions
|
|
@ -76,7 +76,6 @@ pub fn destroy(self: Window) void {
|
||||||
pub fn keyCallback(window: ?*c.GLFWwindow, key: c_int, scancode: c_int, action: c_int, mods: c_int) callconv(.c) void {
|
pub fn keyCallback(window: ?*c.GLFWwindow, key: c_int, scancode: c_int, action: c_int, mods: c_int) callconv(.c) void {
|
||||||
_ = scancode;
|
_ = scancode;
|
||||||
_ = mods;
|
_ = mods;
|
||||||
std.debug.print("test {d}\n", .{key});
|
|
||||||
if (c.glfwGetWindowUserPointer(window)) |r| {
|
if (c.glfwGetWindowUserPointer(window)) |r| {
|
||||||
const resources: *ecs.Resources = @alignCast(@ptrCast(r));
|
const resources: *ecs.Resources = @alignCast(@ptrCast(r));
|
||||||
if (action == c.GLFW_PRESS) {
|
if (action == c.GLFW_PRESS) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue