初级会员
- 积分
- 136
- 金钱
- 136
- 注册时间
- 2020-11-20
- 在线时间
- 55 小时
|
楼主 |
发表于 2020-12-12 15:38:42
|
显示全部楼层
void GetPoint()
{
GUI_PID_STATE State;
if(pre_x[0]==-1 || pre_y[0]== -1 )
{
State.x = -1;
State.y = -1;
State.Pressed = 0;
State.Layer = 0;
GUI_PID_StoreState(&State);
return;
}
State.Pressed = 1;
State.x = pre_x[0];
State.y =pre_y[0];
State.Layer = 0;
GUI_PID_StoreState(&State);
}
void MainTask(void)
{
GUI_Init();
CreateFamewin();
GUI_CURSOR_Show();
GUI_PID_STATE TouchState={0};
printf("i = %s\n",(GUI_GetVersionString()));
while(1)
{
//GUI_TOUCH_Exec();
delay_ms(10);
GetPoint();
GUI_Exec();
GUI_TOUCH_GetState(&TouchState);
//GUI_TOUCH_Exec();
}
}
|
|