An Adelaide court has heard a grandfather was killed by his wife and her lover on the same day his fifth grandchild was born.