void my_input_read(lv_indev_drv_t * drv, lv_indev_data_t*data) { if(touchpad_pressed) { data->point.x = touchpad_x; data->point.y = touchpad_y; data->state = LV_INDEV_STATE_PR or LV_INDEV_STATE_REL; return false; /*No buffering now so no more data read*/ data->state ...
Inlv_indev_data_tsetpoint.x/yto the central point in the driver (if any) or to the primary point. It'd be more explicit. We should also compensate the scale thresholds. The user shouldn't see these internals. Instead when gesture becomes active (regardless of the threshold) we should st...
If you hold the keys it will simulate an encoder advance with period specified inindev_drv.long_press_repeat_time. lv_indev_set_type(indev,LV_INDEV_TYPE_ENCODER); ...voidencoder_with_keys_read(lv_indev_t*indev,lv_indev_data_t*data){data->key=last_key();/*Get the last pressed or ...
will simulate turning encoder left - :cpp:enumerator:`LV_KEY_RIGHT`: will simulate turning encoder right - other keys will be passed to the focused widget If you hold the keys it will simulate an encoder advance with period specified in ``indev_drv.long_press_repeat_time``. .. code:...