only set pitch and heading from gamepad when it's connected
fire the onconnected event. How did that disappear?
test setup