Hello,
in ewconfig.h you can map the touch coordinates provided from the underlying system (or the touch driver) to GUI coordinates.
Typically, in a Linux environment the touch coordinates are already provided calibrated and the mapping from physical to logical coordinates is handled by the Linux touch driver.
Best regards,
Manfred.