对DeviceMotionEvent进行优化,除无用的代码重新封装DeviceMotionEven,另外动画不执行完毕就不能继续执行DeviceMotionEvent事件,所以这点也要进行优化首先对DeviceMotionEvent进行优化;去除无用的代码,重新封装DeviceMotionEven复制代码