hid-remapper icon indicating copy to clipboard operation
hid-remapper copied to clipboard

Add support for different mappings on different devices

Open b- opened this issue 2 years ago • 5 comments

I imagine it wouldn't be too hard to VID:PID pairs and load different configs as a result?

b- avatar Jun 05 '22 19:06 b-

I'm not sure if the effort would be justified if we're just talking about connecting different devices one at a time. But I would like to add support for multiple devices at the same time in the future and then the need for separate mappings for different devices will probably also come up. Not just for different VID/PID, but also for multiple instances of the same device as some people like to keep an identical trackball on the left and on the right of their keyboard, for example.

jfedor2 avatar Jun 06 '22 14:06 jfedor2

The main page of the github says multiple devices can be connected through a hub. Did you already partially implement this but just not the per device mapping yet?

whiskthecat avatar May 20 '23 02:05 whiskthecat

The main page of the github says multiple devices can be connected through a hub. Did you already partially implement this but just not the per device mapping yet?

You can connect multiple devices, you can't have per-device mappings. It's only when you connect multiple devices of the same type this starts to matter.

jfedor2 avatar May 20 '23 10:05 jfedor2

I guess by type you mean keyboard vs mouse? Because even 2 different brands of mouse will still send the same "right, left, forward, back, etc"? Awesome project, thanks for it.

whiskthecat avatar May 20 '23 14:05 whiskthecat

Yes! When you connect a mouse and a keyboard, you don't need per-device mappings. When you connect two mice and want to use one for scrolling and the other for moving the mouse cursor, then they would be useful. For now you can use two HID Remappers if you don't need any interactions between the two devices, like switching layers with one that would affect the other.

jfedor2 avatar May 20 '23 14:05 jfedor2