promotional bannermobile promotional banner

KeyStrokes Overlay With Lua

High-FPS native Dear ImGui keystrokes & mouse overlay for Fabric (1.19.4–26.3) with limitless Lua themes and live hot-reloading.
javaw_5x7UbBqIF0.png

javaw_5x7UbBqIF0.png

javaw_bIxK0URIPv.png

javaw_bIxK0URIPv.png

javaw_DjwDPIDnbX.png

javaw_DjwDPIDnbX.png

Description

⌨️ KeyStrokes Overlay With Lua

A high-FPS, deeply customizable keystrokes & mouse overlay mod for Minecraft Fabric (1.19.4 – 26.3), powered by native Dear ImGui and an embedded Lua theme & scripting engine.


✨ Key Features

  • Native Dear ImGui Rendering (PvP-Optimized): Dirty-state mesh caching, zero-allocation buffers, and a 60Hz cap for animated themes deliver crisp TrueType typography and vector shapes with virtually zero FPS impact (0 ImGui/Lua CPU on idle frames, instant 0 ms keypress latency).
  • Limitless Lua Theme Engine: Customize every key (renderKey + renderGroupBackground) or build 100% freeform HUDs from scratch (onImGuiDraw) using rounded rectangles, multi-corner gradients, glows, drop shadows, circles, arcs, polygons, custom .png/.jpg images, and custom .ttf/.otf fonts.
  • 8 Built-in Themes: default.lua, minimal_pvp.lua, cyber_neon.lua, frosted_glass.lua, rgb_wave.lua, vapor_wave.lua, retro_terminal.lua, and classic.lua (stored in config/keystrokes/ThemeManager/, never overwritten once edited).
  • Live Hot-Reloading: Edit your .lua scripts while playing and click Reload Lua in settings to see changes immediately.
  • Floating Drag-to-Move Settings (K): Drag keyboard and mouse overlays anywhere directly over the live game, switch between 6 built-in color presets (Green, Red, Pink, Purple, Crimson, Gold) or pick any custom active RGBA color, and scale smoothly.
  • 5 Keyboard Layouts + Full Mouse Overlay: Full Keyboard, No NumPad, Horizontal Numbers, Vertical NumPad, and Tryhard + LMB, MMB (with live scroll-wheel highlight), RMB, BWD, FWD, and live CPS counters.

🎮 Controls & Installation

  1. Install Fabric Loader and Fabric API for your Minecraft version (1.19.4 – 26.3).
  2. Drop the downloaded .jar into your mods folder.
  3. Press K in-game to open settings and drag the keyboard/mouse anywhere on screen.
  4. Press Z anytime to toggle the overlay on or off.

📜 Scripting Guide: Create Your Own Theme

Create any .lua file inside config/keystrokes/ThemeManager/ (put custom images in ThemeManager/assets/ and custom fonts in ThemeManager/fonts/).

Per-Key Theme Example (renderKey)

-- Save as "my_theme.lua" in config/keystrokes/ThemeManager/
ANIMATED = false -- Set true for continuous 60Hz animations

function renderKey(label, isPressed, x, y, w, h, r, g, b, a, ctx)
    local accent = rgba(r, g, b, 255)
    if isPressed then
        drawGlow(x, y, w, h, 6, 5, withAlpha(accent, 170))
        fillRounded(x, y, w, h, 6, rgba(r, g, b, 230))
        setTextColor(rgba(12, 14, 18, 255))
    else
        fillRounded(x, y, w, h, 6, rgba(12, 14, 20, 175))
        strokeRounded(x, y, w, h, 6, 1.2, withAlpha(accent, 180))
        setTextColor(rgba(240, 244, 255, 240))
    end
end

Available Lua API

  • Hooks: onThemeLoad(), onFrame(time, dt), renderGroupBackground(x, y, w, h, isMouse, r, g, b, a, time), renderKey(label, isPressed, x, y, w, h, r, g, b, a, ctx), and freeform onImGuiDraw(ctx) with the imgui global table.
  • ctx fields: anim, time, dt, cps, lmbCps, rmbCps, isMouse, code, holdTime, releaseTime.
  • Primitives: fill, fillGradient, fillGradientMulti, fillRounded, strokeRounded, fillPill, fillGradientRounded, drawGlow, drawShadow, fillCircle, strokeCircle, drawArc, drawLine, drawTriangle, drawPolygon, drawImage, drawText, drawCenteredText, drawSmoothText, measureText, suppressDefaultText(true).
  • Helpers: rgba, rgb, hsv, withAlpha, lerp, clamp, lerpColor, easeOutCubic, easeOutBack, easeInOutSine.

💻 Source Code & Issues

Open source under the MIT License — browse the source or open an issue on GitLab.

KeyStrokes Overlay With Lua Team

profile avatar
  • 1
    Projects
  • 30
    Downloads