houmain / keymapper

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

Support more than 32 inputs on Linux #89

Closed alchzh closed 7 months ago

alchzh commented 7 months ago

Fixes #86

Technically Linux will only make event IDs from 0-32 and then 256-1279 but this isn't an guaranteed API or anything I don't think.

Since the mapping is small and most of the time filled only from 0-32 can implement the lookup manually with std::vector, but I don't think the performance is really a concern since it doesn't get updated hundreds of times a second or anything.

houmain commented 7 months ago

Thank you very much!