/* Initialize an input device driver with default values. It is used to surly have known values in the fields ant not memory junk. After it you can set the fields.  */
void lv_indev_drv_init(lv_indev_drv_t *driver)
/* Initialize an input device driver with default values. It is used to surly have known values in the fields ant not memory junk. After it you can set the fields.  */
void lv_indev_drv_init(lv_indev_drv_t *driver)
{
    memset(driver, 0, sizeof(lv_indev_drv_t));
    driver->type                = LV_INDEV_TYPE_NONE;
    driver->drag_limit          = LV_INDEV_DEF_DRAG_LIMIT;
    driver->drag_throw          = LV_INDEV_DEF_DRAG_THROW;
    driver->long_press_time     = LV_INDEV_DEF_LONG_PRESS_TIME;
    driver->long_press_rep_time = LV_INDEV_DEF_LONG_PRESS_REP_TIME;
}