JacKeTUs / universal-pidff

GNU General Public License v2.0
56 stars 4 forks source link

Manually map device buttons to increase button limit from 80 to 138 #24

Closed Lawstorant closed 4 weeks ago

Lawstorant commented 4 weeks ago

This PR adds input_mapping function that handles button mapping. Everything else falls back to the default hid behavior.

By making use of BTN_ and KEY_MACRO ranges we're extending the button limit from 80 to 137. If we need more than that, we can just lower the last block of usages to something that comes earlier than KEY_MACRO1.

I also took the courtesy to add myself as the co-author.