In particular embodiments, a method includes receiving a signal from an electrode of a touch sensor that senses a charge displacement, based on the signal, in order to detect the contact or separation. The method further includes detecting a contact or separation input to the touch sensor.