Gets joystick hat mode.
mode = cock.getJoystickHatMode ( self, joystick, hat )
table self
number joystick
string joystick
number hat
string hat
number mode