A polling interface for the HTML5 Gamepad API