Ps3 Controller

Can we use "Ps2 dualshock" library on wireless "Ps3 dualshock" controller....??? :(