When pressure is applied the membrane around the neurone becomes deformed. The sodium ion channels are opened and are now wide enough so sodium ions diffuse into the neurone.
The influx of sodium ions changes the potential of the membrane.
If the generator potential exceeds the threshold, voltage gated sodium ion channels open causng an action potential that passes along the neurone towards the CNS.