Added a simulateMotionEvent