GP2040 icon indicating copy to clipboard operation
GP2040 copied to clipboard

Refine debouncing configuration

Open FeralAI opened this issue 2 years ago • 1 comments

Debouncing is currently configured at the beginning of the main.cpp file with a fixed 5ms delay. At the very least this should be editable via the web configurator.

A more robust implementation would have preset values for certain types of devices. For instance stock Sanwa JLFs may need more than the stock 5ms debounce delay, but the normal buttons may not. Would be nice to say "set debounce to X for directionals/stick and Y for buttons".

FeralAI avatar Jan 25 '22 15:01 FeralAI

This should definitely be part of the button redo.

To me it seems like physical buttons.. pins… whatever correspond with something button wise, and there’s where LEDs and denounce belong.

For example, if someone made a controller that has both buttons and a stick for movement, debounce values might be different for the stick direction than the button direction

jbarket avatar Apr 17 '22 17:04 jbarket