Introducing Zeys – An All-in-One, 100% Zig Keyboard Module

Hey guys,

I’m excited to introduce Zeys, a Zig-based module designed for simulating keyboard events and handling hotkeys on Windows. Zeys provides functions for binding hotkeys, simulating key presses, checking key states, and even blocking or unblocking user input system-wide. It’s perfect for automating tasks, creating custom keybinding systems, or building accessibility tools.

Some key features include:

  • Simulate Key Presses: Use pressAndReleaseKey() to simulate key presses.
  • Hotkey Management: Bind and unbind hotkeys with custom callbacks.
  • Key State Checking: Check if a key is pressed or a toggle key like Caps Lock is active.
  • Input Blocking: Block and unblock keyboard and mouse input.
  • Locale Info: Retrieve and convert the current keyboard locale.

Currently, Zeys supports Windows only but Linux support may be considered in the future based on feedback. The module uses Windows API functions like RegisterHotKey and SendInput to interact with the system, making it powerful and efficient.

Please star the repo on GitHub if you like it.

4 Likes