Best way to use a PS3 controller with Surface Pro?

What is the best way to use a PS3 controller with a Surface Pro? I tried using motioninjoy but it kept bluescreening.