WALKER168 发表于 2018-10-23 09:57:26

F746G-disco 触摸屏 检测例程 中有个TS_StateTypeDef,谁给解释.....

typedef struct
{
uint8_ttouchDetected;                /*!< Total number of active touches detected at last scan */
uint16_t touchX;      /*!< Touch X, X coordinates on 12 bits */
uint16_t touchY;      /*!< Touch Y, Y coordinates on 12 bits */
#if (TS_MULTI_TOUCH_SUPPORTED == 1)
uint8_ttouchWeight; /*!< Touch_Weight, Touch_Weight : weight property of touches */
uint8_ttouchEventId;   /*!< Touch_EventId, Touch_EventId : take value of type @ref TS_TouchEventTypeDef */
uint8_ttouchArea;   /*!< Touch_Area, Touch_Area : touch area of each touch */
uint32_t gestureId; /*!< type of gesture detected : take value of type @ref TS_GestureIdTypeDef */
#endif/* TS_MULTI_TOUCH_SUPPORTED == 1 */
} TS_StateTypeDef;

具体每一项在检测触摸是否有效 时 的作用。 希望有人讲解一下。

baiyongbin2009 发表于 2018-10-26 12:51:51

这个是多点触摸吧,对于多点触摸不借助GUI,基本发挥不了作用。
页: [1]
查看完整版本: F746G-disco 触摸屏 检测例程 中有个TS_StateTypeDef,谁给解释.....