[][src]Function sdl2_sys::SDL_JoystickGetHat

pub unsafe extern "C" fn SDL_JoystickGetHat(
    joystick: *mut SDL_Joystick,
    hat: c_int
) -> Uint8

Get the current state of a POV hat on a joystick.

The hat indices start at index 0.

\return The return value is one of the following positions: - ::SDL_HAT_CENTERED - ::SDL_HAT_UP - ::SDL_HAT_RIGHT - ::SDL_HAT_DOWN - ::SDL_HAT_LEFT - ::SDL_HAT_RIGHTUP - ::SDL_HAT_RIGHTDOWN - ::SDL_HAT_LEFTUP - ::SDL_HAT_LEFTDOWN