You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #pragma once
- #include "app/common.hpp"
- #include "app/ParamWidget.hpp"
-
-
- namespace rack {
-
-
- /** A ParamWidget that controls */
- struct Switch : ParamWidget {
- /** Return to original position when released */
- bool momentary = false;
- /** Hysteresis state for momentary switch */
- bool momentaryPressed = false;
- bool momentaryReleased = false;
-
- void step() override;
- void onDragStart(const event::DragStart &e) override;
- void onDragEnd(const event::DragEnd &e) override;
- };
-
-
- } // namespace rack
|