Make sure the joystick count is correct when the added and removed events are dispatched, in case someone is watching for them with an event filter.