20#ifndef __VSF_INPUT_TOUCHSCREEN_H__
21#define __VSF_INPUT_TOUCHSCREEN_H__
24#include "../vsf_input_cfg.h"
26#include "../vsf_input_get_type.h"
37#define vsf_input_touchscreen_set(__evt, __id, __is_down, __pressure, __x, __y) \
39 (__evt)->id = ((__id) | (!!(__is_down) << 8)); \
40 (__evt)->cur.valu64 = (__x) | ((__y) << 16) | ((uint64_t)(__pressure) << 32);\
43#define vsf_input_touchscreen_get_id(__evt) \
44 ((uint8_t)(((__evt)->id >> 0) & 0xFF))
45#define vsf_input_touchscreen_is_down(__evt) \
46 (!!(((__evt)->id >> 8) & 0xFF))
47#define vsf_input_touchscreen_get_x(__evt) \
48 ((uint16_t)(((__evt)->cur.valu64 >> 0) & 0xFFFF))
49#define vsf_input_touchscreen_get_y(__evt) \
50 ((uint16_t)(((__evt)->cur.valu64 >> 16) & 0xFFFF))
51#define vsf_input_touchscreen_get_pressure(__evt) \
52 ((uint16_t)(((__evt)->cur.valu64 >> 32) & 0xFFFF))
unsigned short uint16_t
Definition lvgl.h:41
Definition vsf_input_touchscreen.h:65
vk_input_evt_t vk_touchscreen_info_t info
Definition vsf_input_touchscreen.h:67
Definition vsf_input_touchscreen.h:60
uint16_t width
Definition vsf_input_touchscreen.h:61
uint16_t height
Definition vsf_input_touchscreen.h:62