It had nothing to do with sex.
Louis XIV was an extraordinaty man, with an extraordinary inyellect and education. His writings show an artistic temperament, but disciplined, well school in the art of statecraft.
I see a pattern here ~ there's ol' Henry, fat dumb and happy living in a very prosperous France at peace with itself, and with its Protestant neighbors. Then, here comes Madame de Maintenon and she turns Henry to "the Church" whereupon he revokes the very act of official state toleration that kept France's middle class and Protestant merchants at home.
Next thing you know France is up to its eyeballs in conflicts with its Protestant neighbors; the Brits turn hungry eyes on French zones in India, and on the Ohio Valley and on New France!
Real smart Madame de Maintenon!
That's called "screwing the pooch".
No one with a brain would confuse Louis the 14th with anything sexual. Not hetrosexual, anyway.
/johnny