Gyroscope and joystick

Hello,
I’d like to know if it is possible to use the gyroscope or sixaxis function with a ps4 or ps3 gamepad controller

Thanks

I know this answer is extremely late, and you’ve probably already found an answer. But I recently found a wrapper for xInput, that’s compatible with Unity 5.

Here’s the link:
XInputDotNet