/* Get the touch screen X and Y positions values.  */
int32_t MFXSTM32L152_TS_GetState(MFXSTM32L152_Object_t *pObj, MFXSTM32L152_State_t *State)
/* Get the touch screen X and Y positions values.  */
int32_t MFXSTM32L152_TS_GetState(MFXSTM32L152_Object_t *pObj, MFXSTM32L152_State_t *State)
{
  int32_t ret = MFXSTM32L152_OK;
  State->TouchDetected = 0;
  State->TouchX = 0;
  State->TouchY = 0;
  if (MFXSTM32L152_TS_DetectTouch(pObj) == 1)
  {
    State->TouchDetected = 1;
    MFXSTM32L152_TS_GetXY(pObj, (uint16_t *)&(State->TouchX), (uint16_t *)&(State->TouchY));
  }
  return ret;
}