Use this function to get the current state of a POV hat on a joystick. This is only
possible for joysticks, not for game controllers. You have to pass the hat index
to get the state from. Hat indices start at index 0.
The return value will be one of the following predefined constants: