Firstly, we recommend you to use CapSense Component v7.0 for newer designs. We do not recommend CSD component for new designs.
You need to call CapSense_UpdateEnabledBaselines() before checking the status of the sensors using CapSense_CheckIsSensorActive.
If you would like to know the position of touch in a matrix button you can use the API CapSense_GetMatrixButtonPos()
But first you need to know if any sensor in the widget was touched to check for the positon of touch. For that you can use the following snippet:
If this doesn't solve your issue, connect your board to Tuner GUI and check if the rawcounts and difference counts doesn't have any issue.