SDL_GetJoystickHat

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

The returned value will be one of the SDL_HAT_* values.

extern (C) nothrow @nogc extern
SDL_GetJoystickHat

Parameters

joystick SDL_Joystick*

an SDL_Joystick structure containing joystick information.

hat int

the hat index to get the state from; indices start at index 0.

Return Value

Type: Uint8

The current hat position.

See Also

Meta