gethiox / HIDI

flexible HID to MIDI translation layer
GNU General Public License v3.0
29 stars 1 forks source link

Feat/deadzone at center #8

Closed diegoschneider closed 1 month ago

diegoschneider commented 1 month ago

Hello! I made a change that allowed to set the deadzone at the center of the axis, instead of at the 0% mark.

The PS3 controller, for example, sends an unsigned value, so the deadzone only activates on the bottom of the range. In toml, the config would be: ABS_X = { type = "cc", cc = 0 , deadzone_at_center = true } Or omit it to keep the current behaviour, to not break existing configs

Also, in monitor.go it didn't monitor the file if the suffix was "toml" 👀

Hope this helps!

gethiox commented 1 month ago

Hello there! Changes looks good to me, nice catch with monitoring toml files fix!

Thank you for the contribution, much appreciated, builds will be prepared soonâ„¢