Is there any software available that i can use to connect my ps3 controller to the computer and use it?

the computer recognises it as something but i was wondering is there any software available so that i could for eg make the x button on the pad function as the m key so that i could use it to play games

ty
2 answers 2