PS3 or NES controller support?

Hi, I’d like to add a gaming controller for use with emulators and also just to run the menus. Has anyone had luck getting a PS3 controller to work wirelessly through Bluetooth?

Anyone tried a NES controller hooked up with a USB adapter?

What software/settings would I need to remap the buttons of these devices if I could connect them?