Solaris  - SDL_JoystickGetHat (3)

NAME

SDL_JoystickGetHat- Get the current state of a joystick hat

CONTENTS

SYNOPSIS

#include "SDL.h"

Uint8 SDL_JoystickGetHat(SDL_Joystick *joystick, int hat);

advertisement

advertisement


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

Jump to page    or go to Top of page |  Section 3 |  OpenSolaris Man Main Index.


SDL SDL_JoystickGetHat (3) Tue 11 Sep 2001, 23:00
Generated by OpenSolaris Forum from /usr/share/man/man3/SDL_JoystickGetHat.3 using man macros.