Mala can do that, using startcom plugin and mrotate2.
Also, if you are not using a H drive to power the motor, you will need to make/buy one.
If mamewah could know which orientation the game needs to be in, and turn it's menu screen, then it should be possible to use mrotate2 with mamewah.
I dont know anything about mamewah, so I dont know if it is even remotely possible.