reset Debounce
Call to reset the initial debounce state of getDebounced, allowing further calls to this method to capture the initial state of the button again. This resets the statefulness of the debounced state. For implementations that do not call this method, the getDebounced method will operate as a simple rising edge detector.
Standard edge detectors that are stateless are available natively as of SDK v10.3 through wasPressed
and wasReleased
. Use these if idempotency is required.
Parameters
button
The button to reset the debounce state of