static void BSP_Pointer_Update(void)
{
GUI_PID_STATE TS_State;
static TS_StateTypeDef prev_state;
TS_StateTypeDef ts;
uint16_t xDiff, yDiff;
BSP_TS_GetState(&ts);
TS_State.Pressed = ts.TouchDetected;
xDiff = (prev_state.X > ts.X) ? (prev_state.X - ts.X) : (ts.X - prev_state.X);
yDiff = (prev_state.Y > ts.Y) ? (prev_state.Y - ts.Y) : (ts.Y - prev_state.Y);
//if(ts.TouchDetected)
//{
if((prev_state.TouchDetected != ts.TouchDetected )|| (ts.TouchDetected &&
((xDiff > 3 )||
(yDiff > 3))))
{
prev_state = ts;
TS_State.Layer = 0;
TS_State.x = ts.X;
TS_State.y = ts.Y;
GUI_TOUCH_StoreStateEx(&TS_State);
if(ts.TouchDetected)
osDelay(50);
}
//}
}
{
GUI_PID_STATE TS_State;
static TS_StateTypeDef prev_state;
TS_StateTypeDef ts;
uint16_t xDiff, yDiff;
BSP_TS_GetState(&ts);
TS_State.Pressed = ts.TouchDetected;
xDiff = (prev_state.X > ts.X) ? (prev_state.X - ts.X) : (ts.X - prev_state.X);
yDiff = (prev_state.Y > ts.Y) ? (prev_state.Y - ts.Y) : (ts.Y - prev_state.Y);
//if(ts.TouchDetected)
//{
if((prev_state.TouchDetected != ts.TouchDetected )|| (ts.TouchDetected &&
((xDiff > 3 )||
(yDiff > 3))))
{
prev_state = ts;
TS_State.Layer = 0;
TS_State.x = ts.X;
TS_State.y = ts.Y;
GUI_TOUCH_StoreStateEx(&TS_State);
if(ts.TouchDetected)
osDelay(50);
}
//}
}
If you're trying to lose kilograms then you need to get on this brand new custom keto meal plan.
ОтветитьУдалитьTo design this service, licensed nutritionists, fitness trainers, and professional cooks have joined together to provide keto meal plans that are useful, convenient, price-efficient, and fun.
Since their first launch in 2019, hundreds of people have already transformed their body and health with the benefits a great keto meal plan can give.
Speaking of benefits: in this link, you'll discover eight scientifically-tested ones given by the keto meal plan.
Look at the way my associate Wesley Virgin's biography begins with this shocking and controversial video.
ОтветитьУдалитьWesley was in the military-and shortly after leaving-he revealed hidden, "self mind control" tactics that the government and others used to get anything they want.
THESE are the exact same secrets tons of celebrities (especially those who "became famous out of nothing") and the greatest business people used to become rich and successful.
You've heard that you utilize only 10% of your brain.
That's really because the majority of your BRAINPOWER is UNCONSCIOUS.
Maybe that conversation has even occurred IN YOUR very own head... as it did in my good friend Wesley Virgin's head seven years ago, while driving an unregistered, beat-up garbage bucket of a car without a license and $3 in his bank account.
"I'm absolutely frustrated with going through life payroll to payroll! When will I finally succeed?"
You've taken part in those thoughts, right?
Your own success story is waiting to start. All you need is to believe in YOURSELF.
CLICK HERE TO LEARN WESLEY'S METHOD
This way my colleague Wesley Virgin's adventure starts with this SHOCKING AND CONTROVERSIAL VIDEO.
ОтветитьУдалитьYou see, Wesley was in the military-and shortly after leaving-he found hidden, "SELF MIND CONTROL" tactics that the CIA and others used to get whatever they want.
THESE are the exact same secrets many famous people (especially those who "became famous out of nothing") and top business people used to become wealthy and successful.
You probably know that you only use 10% of your brain.
That's mostly because the majority of your brainpower is UNCONSCIOUS.
Perhaps this conversation has even taken place INSIDE OF YOUR own head... as it did in my good friend Wesley Virgin's head 7 years ago, while driving an unlicensed, beat-up garbage bucket of a vehicle with a suspended license and in his pocket.
"I'm absolutely fed up with living payroll to payroll! When will I finally succeed?"
You took part in those questions, isn't it so?
Your own success story is going to be written. All you need is to believe in YOURSELF.
WATCH WESLEY SPEAK NOW