Get the latest tech news
RP2040 Hid Remapper
USB input remapping dongle. Contribute to jfedor2/hid-remapper development by creating an account on GitHub.
It lets you map the same button to different things depending on whether it's tapped(pressed and released quickly) or held(longer than 200ms or whatever you set the threshold to). Sometimes you want a certain button to send multiple outputs, but not at the same time, but one after another, for example to input a special character by typing something like Alt-0165 or to emulate a double click. This repository has GitHub Actions that build the firmware, so you can just fork, make your changes, wait for the job to complete, and look for the binaries in the artifacts produced.
Or read this on Hacker News