Touchgfx can't detect any touch
Hello,
I started the development of a touchgfx application from a F4 evaluation board but I'm using a different display (720x720) and a different touch controller.
The video output looks good, the interactions that doesn't involve any touch action work good, but it can't detect any touch.
I forced the touchDetected field to 1 to debug this issue, I cannot understand how the touchgfx core can ignore the "touch" when x, y and the boolean returned are correct.
Is there a touch register? Is there any way to debug how the output of the sampleTouch function is used?
Here I post the code:
bool STM32F4TouchController::sampleTouch(int32_t& x, int32_t& y)
{
/* USER CODE BEGIN F4TouchController_sampleTouch */
TS_StateTypeDef state;
BSP_TS_GetState(&state);
if (state.TouchDetected)
{
x = (int32_t)state.X;
y = (int32_t)state.Y;
return true;
}
return false;
/* USER CODE END F4TouchController_sampleTouch */
}
Thank you