There's a difference between identity and activity. You can do some gay stuff and still not consider yourself a gay person. But yes, sexual thoughts about the same gender is a pretty gay activity.
Discussion
Ok, please advise what are the ‘gay stuff’ that you can do and not be gay?

Well he could be gay, or both be gay.