rgerganov / footswitch

Command-line utility for PCsensor and Scythe foot switches
MIT License
419 stars 60 forks source link

Add support for multiple devices #89

Open MRigal opened 1 year ago

MRigal commented 1 year ago

Pull Request https://github.com/rgerganov/footswitch/pull/68 has been rebased to support latest sensors and the #ifdef for OSX has been removed to add support for multiple devices for OSX too.

Note that I've noticed some bug in the implementation of @taladar as the key mapping has to be done in ascending order of -k, elsewhise some assignement is overwritten.

@rgerganov it reverts the preprocessor distinguishing the OSes in libhdi but it works well this way for me. Test it also maybe.

Please note that I'm not a C developer and I've just tried to make it work enough for me.

rgerganov commented 1 year ago

Thanks for the patch, I can't test it right now, will let you know when I give it a try