| 45 | } |
| 46 | |
| 47 | ButtonControl::~ButtonControl() { |
| 48 | if (driverThread != nullptr && driverThread->getState() != tt::Thread::State::Stopped) { |
| 49 | stopThread(); |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | void ButtonControl::readCallback(lv_indev_t* indev, lv_indev_data_t* data) { |
| 54 | // Defaults |