Adjust this element, returning true if we have finished adjustment. 'clicks' is the number of encoder clicks to adjust by, or 0 if the button was pushed.
| 390 | // Adjust this element, returning true if we have finished adjustment. |
| 391 | // 'clicks' is the number of encoder clicks to adjust by, or 0 if the button was pushed. |
| 392 | bool ValueMenuItem::Adjust(int clicks) noexcept |
| 393 | { |
| 394 | return (clicks == 0) // if button has been pressed |
| 395 | ? Adjust_SelectHelper() |
| 396 | : Adjust_AlterHelper(clicks); |
| 397 | } |
| 398 | |
| 399 | #endif |
| 400 |