chickadee » sdl2 » joystick-get-hat

joystick-get-hat joystick hat-numprocedure
joystick-get-hat-raw joystick hat-numprocedure

See SDL_JoystickGetHat.

Both procedures signal an exception of kind (exn bounds) if hat-num is less than 0 or greater than the last hat switch on the joystick (see joystick-num-hats).