|
FastLED 3.9.15
|
#include <button.h>
Inheritance diagram for fl::Button:
Collaboration diagram for fl::Button:Classes | |
| struct | Listener |
Public Member Functions | |
| Button (int pin, ButtonStrategy strategy=ButtonStrategy::kHighLowFloating) | |
| bool | clicked () const FL_NOEXCEPT override |
| bool | isPressed () const FL_NOEXCEPT override |
| int | onClick (fl::function< void()> callback) |
| void | removeOnClick (int id) |
| void | setStrategy (ButtonStrategy strategy) |
Public Member Functions inherited from fl::IButtonInput | |
| virtual | ~IButtonInput () FL_NOEXCEPT=default |
Private Attributes | |
| ButtonLowLevel | mButton |
| bool | mClickedThisFrame = false |
| Listener | mListener |
| fl::function_list< void()> | mOnClickCallbacks |
| bool | mPressedLastFrame = false |