MIDI Control Surface library for Arduino
|
Go to the documentation of this file.
8 template <setting_t N,
class Callback = EmptySelectorCallback>
34 #ifdef AH_INDIVIDUAL_BUTTON_INVERT
57 template <setting_t N>
void begin() override
Initialize this updatable.
AH::IncrementButton button
void begin() override
Initialize this updatable.
Selector with one button that increments the selection.
GenericIncrementSelector(Selectable< N > &selectable, const Callback &callback, const AH::IncrementButton &button, Wrap wrap=Wrap::Wrap)
#define BEGIN_CS_NAMESPACE
IncrementSelector(Selectable< N > &selectable, const AH::IncrementButton &button, Wrap wrap=Wrap::Wrap)
void increment(Wrap wrap)
Add one to the setting, wrap around or clamp, depending on the parameter, if the new setting would be...
void update() override
Update this updatable.
AH::IncrementButton::State getButtonState() const
Wrap
An enumeration to set the behavior of selectors that are incremented (decremented) beyond their maxim...
IncrementSelector(Selectable< N > &selectable, const AH::Button &button, Wrap wrap=Wrap::Wrap)
When the maximum (minimum) setting is reached, wrap around to the minimum (maximum) setting.
Selectable< N > & selectable