From your finger's angle of attack, to gestures like twists, researchers have developed algorithms to make any touch screen smarter.
When you touch your iPhone screen, it basically sees a few dark spots with no other context. From that alone, it's brought us landmark interactions like the swipe and pinch-to-zoom. But to do more, Apple had to rebuild its own touch screen, adding the pressure sensitivity of 3D Touch.