Effectively the same question here:
https://community.st.com/s/question/0D53W00001ZWqHpSAL/how-do-we-know-if-our-hand-is-on-the-button-at-touchgfx
A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.