logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_JoystickGetHat - Get the current state of a joystick hat

Description

       SDL_JoystickGetHat returns the current state of the given hat on the given joystick.

Name

       SDL_JoystickGetHat - Get the current state of a joystick hat

Return Value

       The  current  state  is returned as a Uint8 which is defined as an OR'd combination of one or more of the
       following

                 SDL_HAT_CENTEREDSDL_HAT_UPSDL_HAT_RIGHTSDL_HAT_DOWNSDL_HAT_LEFTSDL_HAT_RIGHTUPSDL_HAT_RIGHTDOWNSDL_HAT_LEFTUPSDL_HAT_LEFTDOWN

See Also

SDL_JoystickNumHats

SDL                                          Tue 11 Sep 2001, 23:00                        SDL_JoystickGetHat(3)

Synopsis

#include"SDL.h"Uint8SDL_JoystickGetHat(SDL_Joystick*joystick,inthat);

See Also