Lines Matching refs:data
38 void my_input_read(lv_indev_drv_t * drv, lv_indev_data_t*data)
41 data->point.x = touchpad_x;
42 data->point.y = touchpad_y;
43 data->state = LV_INDEV_STATE_PRESSED;
45 data->state = LV_INDEV_STATE_RELEASED;
68 void keyboard_read(lv_indev_drv_t * drv, lv_indev_data_t*data){
69 data->key = last_key(); /*Get the last pressed or released key*/
71 if(key_pressed()) data->state = LV_INDEV_STATE_PRESSED;
72 else data->state = LV_INDEV_STATE_RELEASED;
99 void encoder_read(lv_indev_drv_t * drv, lv_indev_data_t*data){
100 data->enc_diff = enc_get_new_moves();
102 if(enc_pressed()) data->state = LV_INDEV_STATE_PRESSED;
103 else data->state = LV_INDEV_STATE_RELEASED;
125 void encoder_with_keys_read(lv_indev_drv_t * drv, lv_indev_data_t*data){
126 data->key = last_key(); /*Get the last pressed or released key*/
128 if(key_pressed()) data->state = LV_INDEV_STATE_PRESSED;
130 data->state = LV_INDEV_STATE_RELEASED;
132 data->enc_diff = enc_get_new_moves();
153 void button_read(lv_indev_drv_t * drv, lv_indev_data_t*data){
158 data->state = LV_INDEV_STATE_PRESSED; /*Set the pressed state*/
160 data->state = LV_INDEV_STATE_RELEASED; /*Set the released state*/
163 data->btn = last_btn; /*Save the last button*/
191 …driver for your input device that buffers measured data. In `read_cb` you can report the buffered …
192 Setting the `data->continue_reading` flag will tell LVGL there is more data to read and it should c…