devicemotion and touch events example