Federer walked out to a standing ovation from more than 13,500 fans at the Perth Arena and breezed to an easy win over Evans, putting Switzerland 1-0 ahead in their match against Britain in the mixed team event.
"The standing ovation coming in, it was very special. I'm here now enjoying and looking forward to the week of course," the 35-year-old said in a courtside interview.
Asked what keeps him going, Federer said; "I guess it depends also on how you get hurt. I got hurt filling up a bath for my children. It's not really the way I wanted to leave this game."
News that makes sense
Your trusted source for staying up-to-date with the world around you. Get free daily news updates and analysis, straight to your inbox.
The former world number one, who has slipped to 16th in the rankings, said he enjoyed the time out but had started to miss tennis.
"You can't be more happy to return back on a Centre Court, taping your ankles, tying your shoes and walking out and getting that kind of welcome," he said.
Federer has not won a grand slam title since Wimbledon in 2012.
"It would be nice to win another one, of course I'd even take two-three-four," he said.
"It's tough at the top. A lot of good guys are there right now, a lot of young guys are coming up too. The gap's definitely not very big but I gave it chance. Let's see what happens."
(Reporting by Amlan Chakraborty in New Delhi, editing by Ed Osmond)
