Keyboard to mouse click remaps

Hello, I am looking to remap keys in my keyboard to left click through the Feather RP2040 USB Host board from Adafruit, however, I would want it to left click on the key press down and to left click again on the release of the key.

I am not sure whether this kind of functionality can be achieved from looking in the HID Remapper configuration website and from my reading into the subject. Any advice would be greatly appreciated.

Thanks

You could create an expression like this:

0x00070004 input_state_binary
0x00070004 prev_input_state_binary
eq not

And then map Expression 1 to Left button (or whatever). Change the hex code to match the key you want to map.

The expression outputs “1” whenever the previous state of the key is different from the current state, so either just pressed or just released.

My background on this subject is purely everything I have read today and highly limited. From your guide you state that once you have the device you “need to flash it with the right firmware” and its done.

From my understanding, I would connect the Feather RP2040 to the computer as well as my keyboard and click the boot/reset buttons.

Then I’d go to the configuration tool, open the device and and start remapping. I would remap for example the W key (input) to left click (output) and then go to the expressions tab and include the expressions you have included. But I would need to find out what the code is for W and what it is for left click. Im not sure how I would find this out yet. I would also need to add a second map linking expression 1 to W?

Then I would click save to device and it would presumably work when I reconnect the device?

In this case you would only have one mapping, Expression 1 → Left click.

You can see the hex code in the Monitor tab on the configuration website when you press the key on your keyboard while it’s plugged into HID Remapper. For W it’s 0x0007001a.

Thank you very much for your support jfedor, my device finally arrived in the post and was able to test around with the settings. Works perfectly as I needed.

1 Like

Is there a way to make it so that when you hold down a button it clicks one button, holds down a separate button, and then released the separate button and clicks the original button again?

Yeah, just add another simple A->B mapping to the above.

Of course, thank you!