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.

SliderKnob.cpp 359B

1234567891011121314151617181920212223
  1. #include <app/SliderKnob.hpp>
  2. namespace rack {
  3. namespace app {
  4. SliderKnob::SliderKnob() {
  5. forceLinear = true;
  6. }
  7. void SliderKnob::onHover(const HoverEvent& e) {
  8. // Bypass Knob's circular hitbox detection
  9. ParamWidget::onHover(e);
  10. }
  11. void SliderKnob::onButton(const ButtonEvent& e) {
  12. ParamWidget::onButton(e);
  13. }
  14. } // namespace app
  15. } // namespace rack