There are two major type of screen type ;LED,LCD. They are embedded widh sensors which opperate at diffrent principles according to the manufacture's choice .Some opperate in such away that when you tourch the screen with your finger there is a voltage drop at that point hence a signal is sent to the processing unit . Some also opperate when the light emmited by your screen is blocked by your finger.