Cardiac devices and methods provide adaptation of detection windows used
to determine a cardiac response to pacing. Adapting a detection window
involves sensing a cardiac signal indicative of a particular type of
cardiac pacing response, and detecting a feature of the sensed cardiac
signal. The cardiac response detection window associated with the type of
cardiac pacing response is preferentially adjusted based on the location
of the detected cardiac feature. Preferential adjustment of the detection
window may involve determining a direction of change between the
detection window and the detected feature. The detection window may be
adapted more aggressively in a more preferred direction and less
aggressively in a less preferred direction.