| 26 | } |
| 27 | |
| 28 | void Switch::initParamQuantity() { |
| 29 | ParamWidget::initParamQuantity(); |
| 30 | engine::ParamQuantity* pq = getParamQuantity(); |
| 31 | if (pq) { |
| 32 | pq->snapEnabled = true; |
| 33 | pq->smoothEnabled = false; |
| 34 | if (momentary) { |
| 35 | pq->resetEnabled = false; |
| 36 | pq->randomizeEnabled = false; |
| 37 | } |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | void Switch::step() { |
| 42 | engine::ParamQuantity* pq = getParamQuantity(); |
nothing calls this directly
no outgoing calls
no test coverage detected