Turn your android device into a joystick for your HTML5 game ,   This app opens a socket to server and polls orientation of the deivice. hostname and port are configurable.