GUI_TOUCH_GetxPhys always returns 0

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • GUI_TOUCH_GetxPhys always returns 0

    How are the GetxPhys and GetyPhys functions supposed to work, I'm using the TOUCH_Calibrate.c sample which makes use of the functions, but they always return 0.

    GUI_PID_STATE State;
    int px, py;

    GUI_TOUCH_StoreState(50, 50);
    GUI_TOUCH_GetState(&State);
    px = GUI_TOUCH_GetxPhys();
    py = GUI_TOUCH_GetyPhys();
    // State.x == State.y == 50
    // px == py == 0

    In practise I call StoreState repeatedly from an interrupt, but I thought perhaps there was an issue with interrupts so I made the above code to test. Any ideas on what I am doing wrong?