Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Cookbook

Recipes you can copy, paste, and run. Every script is written against the real SDK — the same namespaces you call from your own scripts. Most run unchanged in free software mode (OS-level output) or on a Teensy 4.x in hardware mode; the exceptions are recipes that implement the OnMove hook (tremor smoothing, mouse rate limiting, mouse acceleration). Those intercept mouse movement, which requires a Rebind hardware device — software mode can’t synchronously act on mouse input — so the relay refuses to run them without a device. Each OnMove recipe notes this.

Each recipe begins with a modeline header (--[[ rebind: … --]]). The min_sdk line in it is required — the relay won’t run a script whose modeline doesn’t declare a Rebind version. See Modeline.

The recipes make your input devices do more work for you: productivity, accessibility, automation, and remapping — text expansion, per-app shortcut layers, dwell-click and tremor smoothing, HTTP-driven control, and turning any key into another key, a chord, or a layer.

Each recipe names the namespaces it uses and the hooks it implements (OnDown, OnUp, OnMove, OnScroll, OnTick, OnStart, OnStop, OnBlur) so you can see how it works before you adapt it.