Have you used MMM-Swipe module. It uses two ultrasonic sensors to detectr right and left motions, I found it quite easy and straightforward
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.