The man who murdered 49 people at a gay club in Orlando was a closet homosexual who used gay dating apps and frequented gay bars, according to friends and locals in the city.

On Tuesday police were considering pressing charges against Omar Mateen’s second wife, Nour Salman, 30, who told the FBI she went with him to scope out possible targets, and that she had tried to stop him from carrying out the attack.

Ms Salman lived in a suburb of Chicago before moving to Fort Pierce with Mateen in November 2012. In December 2015 she is believed to have left Florida and moved in with relatives in Rodeo, California. She has not spoken publicly and has scrubbed her social media accounts since the attack. Her few remaining pictures show her smiling and posing with Mateen and a child believed to be their son. A photo from Instagram Salman shows Mateen kissing a child, with the caption: “Daddy’s boy.”

Yet others who knew the New York-born killer have painted a picture of a gay man who could not come to terms with his sexuality.

“I recognise his face,” said Justin Datz, 33, who works at Parliament – a hotel and resort which has been home to the city’s gay community since 1975.

“I’m not on gay dating apps or anything anymore, but he certainly looks familiar. So when I heard he frequented gay bars around here, it all made sense.”

A member of the Independent Fundamental Baptist church, which condemns homosexuality, Mr Datz said he had some sense of what could have motivated Mateen.

“I went through that self hatred,” he told The Telegraph. “You don’t know how to accept it. But I was never part of a community that would kill me for my sexuality. And I was able to deal with it – unlike him.”

Vicky Bebout, 68-year-old doyenne of the resort, nodded.

“You know exactly how it went,” she said. “He was looking at those apps. His dad saw him. He said he hated it. He was about to get caught, and couldn’t cope.

“We see it all the time here. Guys come in at lunchtime, then go home to their wives.”

Mateen’s ex-wife, Sifora Yusufiy, has said he alluded to a secret private life before they were married – a marriage arranged online in 2008, which lasted two years.

"When we had got married, he confessed to me about his past - that was recent at that time - and that he very much enjoyed going to clubs and the nightlife," said Ms Yusufiy, who divorced Mateen in 2011 and said he was abusive and unstable.