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.

21 lines
309B

  1. #include "app/MomentarySwitch.hpp"
  2. namespace rack {
  3. void MomentarySwitch::onDragStart(const event::DragStart &e) {
  4. if (paramQuantity) {
  5. paramQuantity->setMax();
  6. }
  7. }
  8. void MomentarySwitch::onDragEnd(const event::DragEnd &e) {
  9. if (paramQuantity) {
  10. paramQuantity->setMin();
  11. }
  12. }
  13. } // namespace rack