SDL_JoystickGetHat - Get the current state of a joystick hat
Contents
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_LEFTDOWNSee Also
SDL_JoystickNumHats
SDL Tue 11 Sep 2001, 23:00 SDL_JoystickGetHat(3)
Synopsis
#include"SDL.h"Uint8SDL_JoystickGetHat(SDL_Joystick*joystick,inthat);
