#include <SwitchInput.h>
Public Member Functions | |
virtual void | encoderHasChanged (int newValue)=0 |
Optionally you can extend your class from EncoderListener and then receive the callbacks in the encoderHasChanged method instead of using a functional callback.
|
pure virtual |
Called when the encoder has changed to a new value, you must implement this method in the class that extends from EncoderListener.
newValue | the new value of the encoder. |