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.

20 lines
453B

  1. #pragma once
  2. #include "app/common.hpp"
  3. namespace rack {
  4. /** A switch that is turned on when held and turned off when released.
  5. Consider using SVGButton if the switch simply changes the state of your Module when clicked.
  6. */
  7. struct MomentarySwitch : virtual ParamWidget {
  8. /** Don't randomize state */
  9. void randomize() override {}
  10. void onDragStart(event::DragStart &e) override;
  11. void onDragEnd(event::DragEnd &e) override;
  12. };
  13. } // namespace rack