[][src]Module rmicrobit::buttons::monitors::holding

Support for detecting button 'hold' events.

This is part of the implementation of the single_with_hold and dual_with_hold button monitors, public so that it's possible to make variants with different timings.

Structs

DefaultHoldDescriptor

The default HoldDescriptor.

HoldAnnotator

A hold-detection algorithm and associated state.

Enums

Event

Variant of TransitionEvent with an additional Hold event.

Traits

HoldDescriptor

Description of the number of ticks to treat as a 'hold'.