New controller for PC

I need to buy a new controller for to use with my emulators, but I had some questions and need some recommendations. The last controller I had got the buttons get stuck from button mashing so I need a controller that can withstand the occasional button mashing. I also am considering buying a wireless controller to use, but last time I bought one and tried to connect it to my PC, it didn't work. How would I connect a wireless controller to my PC?