meanwhile I found the solution, “Get Input Motion State” and TiltX and TiltY
and Here is the result :
Short demonstration