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.

19 lines
436B

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