updating samples for changes to determining how a gamepad is connected