There is nothing wrong with you, he's a guy and a friend that you have know from quite sometime I am guessing. In someways you shared a lot of common ground, but now you're beginning to question that since he is gay and you're not. I'm inferring a lot of things here, but the best thing is to talk it out with him like Y said. Depends on where you live and your family as well it can be extremely hard for him to come out, if you're his friend and want to continue being his friend, talk it out.
Also gay men are frisky just like any other guy out there when drunk, Y is just trying to get you to drop your guard, don't be fooled.......kidding/ maybe.