allocator: std.mem.Allocator, fn log(comptime fmt: []const u8, args: anytype) void { core.engine_log("[InputDebugger] " ++ fmt, args); } fn debugShowKeys(binding: anytype) void { ig.textFmt("{s} ({s}) keysDown count: {d}", .{ binding.data.name.utf8(), @typeName(@TypeOf(binding)), binding.data.keysDown.count() }) catch return; } pub fn tick() void { const stack = core.inputs.getInputStack(); if (ig.begin("input stack", null, .{})) { for (stack.active.bindingStack.items) |binding| { switch (binding) { .action => |b| { debugShowKeys(b); }, .axis1d => |b| { debugShowKeys(b); }, .axis2d => |b| { debugShowKeys(b); }, } } ig.end(); } } const std = @import("std"); const backlog = @import("Backlog"); const core = backlog.core; const rend = backlog.rend; const ig = backlog.imgui.api;