Insanity is an affirmative defense to a prosecution for any criminal offense. Mental disease or defect does not otherwise constitute a defense. The defendant has the burden of proving the defense of insanity by clear and convincing evidence.
SDCL 22-5-10