early implementation of gamepad (webkit only)