need some joystick help.

Hi I´m using pygame to use multiple joysticks
but I can´t get number of hats and value of the hats

so I was wondering if perhaps you guys knew how to get the value of the hats of the joysticks and how many hats there are

any help would be apriciated

nevermind just figured it out