.\" This manpage content is licensed under Creative Commons .\" Attribution 4.0 International (CC BY 4.0) .\" https://creativecommons.org/licenses/by/4.0/ .\" This manpage was generated from SDL's wiki page for SDL_SetJoystickVirtualHat: .\" https://wiki.libsdl.org/SDL_SetJoystickVirtualHat .\" Generated with SDL/build-scripts/wikiheaders.pl .\" revision SDL-3.1.0 .\" Please report issues in this manpage's content at: .\" https://github.com/libsdl-org/sdlwiki/issues/new .\" Please report issues in the generation of this manpage from the wiki at: .\" https://github.com/libsdl-org/SDL/issues/new?title=Misgenerated%20manpage%20for%20SDL_SetJoystickVirtualHat .\" SDL can be found at https://libsdl.org/ .de URL \$2 \(laURL: \$1 \(ra\$3 .. .if \n[.g] .mso www.tmac .TH SDL_SetJoystickVirtualHat 3 "SDL 3.1.0" "SDL" "SDL3 FUNCTIONS" .SH NAME SDL_SetJoystickVirtualHat \- Set values on an opened, virtual-joystick's hat\[char46] .SH SYNOPSIS .nf .B #include \(dqSDL3/SDL.h\(dq .PP .BI "int SDL_SetJoystickVirtualHat(SDL_Joystick *joystick, int hat, Uint8 value); .fi .SH DESCRIPTION Please note that values set here will not be applied until the next call to .BR SDL_UpdateJoysticks , which can either be called directly, or can be called indirectly through various other SDL APIs, including, but not limited to the following: .BR SDL_PollEvent , .BR SDL_PumpEvents , .BR SDL_WaitEventTimeout , .BR SDL_WaitEvent \[char46] .SH FUNCTION PARAMETERS .TP .I joystick the virtual joystick on which to set state\[char46] .TP .I hat the specific hat on the virtual joystick to set\[char46] .TP .I value the new value for the specified hat\[char46] .SH RETURN VALUE Returns 0 on success or a negative error code on failure; call .BR SDL_GetError () for more information\[char46] .SH AVAILABILITY This function is available since SDL 3\[char46]0\[char46]0\[char46]