houmain / keymapper

A cross-platform context-aware key remapper.
GNU General Public License v3.0
298 stars 25 forks source link

device filter matches a list of devices #44

Closed G-M0N3Y-2503 closed 1 year ago

G-M0N3Y-2503 commented 2 years ago

My 2 devices show up as multiple event devices.

Grabbing device event3 'Razer Razer Naga 2014'
Grabbing device event7 'Razer Razer BlackWidow Ultimate 2013'
Grabbing device event8 'Razer Razer BlackWidow Ultimate 2013'
Grabbing device event9 'Razer Razer BlackWidow Ultimate 2013'
Grabbing device event13 'Razer Razer Naga 2014'
Grabbing device event18 'Razer Razer Naga 2014'

The currently implimentation maps to the first found device which may not have the keys I want to map, This PR will allow matching all devices that have the same name, effectively treating them as one device.

As per https://github.com/houmain/keymapper/pull/42 this may have the side effect of treating multiple physical devices as one device too.

houmain commented 1 year ago

Hey, thanks for the pull request! I implemented this now a little differently (with a bitmask instead of a vector) and additionally added regex support.