Is there any way to automate accelerometer instances?

I am experimenting to cover more areas on mobile automation, so just out of curiosity I wanted to know if there is any way I could automate accelerometer instances?

If I’m not wrong you are looking for orientation if you want to test accelerometer then you need to check for orientation. For that you can use below line code.
driver.rotate(orientation)

This is not exactly what I am looking for. I agree that orientation is changed wrt the accelerometer but thats just one use case of accelerometer.
My purpose is that if I am playing a game, lets take a car racing game, which is controlled via motion (accelerometer), will I be able to automate that kind of scenario where all the turns taken on racing track in the game can be implemented in automation.