Homosexuals are mentally ill, so a case could be made. But I don't recall the second amendment excluding crazies from "shall not be infringed".
If you can't be trusted to be armed, you should not be running around loose.
I've been saying that for years. It's not like criminals can't get guns anyway.