getHat method

JoyHatValue getHat(
  1. int hat
)

Get the position of a hat.

SDL Docs

Implementation

JoyHatValue getHat(final int hat) =>
    sdl.sdl.SDL_JoystickGetHat(handle, hat).toJoyHatValue();