Header Ads Widget

[MAN] SDL_JoystickGetHat

Content-type: text/html; charset=UTF-8 Man page of SDL_JoystickGetHat

SDL_JoystickGetHat

Section: SDL API Reference (3)
Updated: Tue 11 Sep 2001, 23:00
Index Return to Main Contents
 

NAME

SDL_JoystickGetHat - Get the current state of a joystick hat  

SYNOPSIS

#include "SDL.h"

Uint8 SDL_JoystickGetHat(SDL_Joystick *joystick, int hat);  

DESCRIPTION

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

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_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
 

SEE ALSO

SDL_JoystickNumHats


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 04:45:36 GMT, September 16, 2022

댓글 쓰기

0 댓글