lv_indev_set_cursor: don't enable cursor for LV_INDEV_TYPE_BUTTON

This commit is contained in:
Gabor Kiss-Vamosi
2018-12-18 07:33:55 +01:00
parent e6c4845983
commit 61caef8e94

View File

@@ -136,7 +136,7 @@ void lv_indev_enable(lv_hal_indev_type_t type, bool enable)
*/
void lv_indev_set_cursor(lv_indev_t * indev, lv_obj_t * cur_obj)
{
if(indev->driver.type != LV_INDEV_TYPE_POINTER && indev->driver.type != LV_INDEV_TYPE_BUTTON) return;
if(indev->driver.type != LV_INDEV_TYPE_POINTER) return;
indev->cursor = cur_obj;
lv_obj_set_parent(indev->cursor, lv_layer_sys());