diff --git a/examples/core/input_mouse_wheel.zig b/examples/core/input_mouse_wheel.zig index e3872f1..86f88b7 100755 --- a/examples/core/input_mouse_wheel.zig +++ b/examples/core/input_mouse_wheel.zig @@ -13,7 +13,7 @@ pub fn main() anyerror!void { defer rl.closeWindow(); // Close window and OpenGL context var boxPositionY: f32 = screenHeight / 2 - 40; - var scrollSpeed: f32 = 4; // Scrolling speed in pixels + const scrollSpeed: f32 = 4; // Scrolling speed in pixels rl.setTargetFPS(60); // Set our game to run at 60 frames-per-second //-------------------------------------------------------------------------------------- diff --git a/lib/preludes/raylib-zig-prelude.zig b/lib/preludes/raylib-zig-prelude.zig index d98afd7..0006b01 100755 --- a/lib/preludes/raylib-zig-prelude.zig +++ b/lib/preludes/raylib-zig-prelude.zig @@ -1158,6 +1158,17 @@ pub const LoadFileTextCallback = ?fn ([*c]const u8) callconv(.C) [*c]u8; pub const SaveFileTextCallback = ?fn ([*c]const u8, [*c]u8) callconv(.C) bool; pub const AudioCallback = ?*const fn (?*anyopaque, c_uint) callconv(.C) void; +pub const AutomationEvent = extern struct { + frame: c_uint = @import("std").mem.zeroes(c_uint), + type: c_uint = @import("std").mem.zeroes(c_uint), + params: [4]c_int = @import("std").mem.zeroes([4]c_int), +}; +pub const AutomationEventList = extern struct { + capacity: c_uint = @import("std").mem.zeroes(c_uint), + count: c_uint = @import("std").mem.zeroes(c_uint), + events: [*c]AutomationEvent = @import("std").mem.zeroes([*c]AutomationEvent), +}; + pub const RAYLIB_VERSION_MAJOR = @as(i32, 4); pub const RAYLIB_VERSION_MINOR = @as(i32, 6); pub const RAYLIB_VERSION_PATCH = @as(i32, 0); diff --git a/lib/raylib-zig.zig b/lib/raylib-zig.zig index bd2a2f1..6379fe8 100644 --- a/lib/raylib-zig.zig +++ b/lib/raylib-zig.zig @@ -1158,6 +1158,17 @@ pub const LoadFileTextCallback = ?fn ([*c]const u8) callconv(.C) [*c]u8; pub const SaveFileTextCallback = ?fn ([*c]const u8, [*c]u8) callconv(.C) bool; pub const AudioCallback = ?*const fn (?*anyopaque, c_uint) callconv(.C) void; +pub const AutomationEvent = extern struct { + frame: c_uint = @import("std").mem.zeroes(c_uint), + type: c_uint = @import("std").mem.zeroes(c_uint), + params: [4]c_int = @import("std").mem.zeroes([4]c_int), +}; +pub const AutomationEventList = extern struct { + capacity: c_uint = @import("std").mem.zeroes(c_uint), + count: c_uint = @import("std").mem.zeroes(c_uint), + events: [*c]AutomationEvent = @import("std").mem.zeroes([*c]AutomationEvent), +}; + pub const RAYLIB_VERSION_MAJOR = @as(i32, 4); pub const RAYLIB_VERSION_MINOR = @as(i32, 6); pub const RAYLIB_VERSION_PATCH = @as(i32, 0);