Using swipe with p5.js

Does anyone know of an example of the proper implementation of swipe left/right/up/down on mobile?