SDL_JoyHatEvent\- Joystick hat position change event structure
.SH"STRUCTURE DEFINITION"
.PP
.nf
\f(CWtypedef struct{
Uint8 type;
Uint8 which;
Uint8 hat;
Uint8 value;
} SDL_JoyHatEvent;\fR
.fi
.PP
.SH"STRUCTURE DATA"
.TP20
\fBtype\fR
\fBSDL_JOY\fP
.TP20
\fBwhich\fR
Joystick device index
.TP20
\fBhat\fR
Joystick hat index
.TP20
\fBvalue\fR
Hat position
.SH"DESCRIPTION"
.PP
\fBSDL_JoyHatEvent\fR is a member of the \fI\fBSDL_Event\fR\fR union and is used when an event of type \fBSDL_JOYHATMOTION\fP is reported\&.
.PP
A \fBSDL_JOYHATMOTION\fP event occurs when ever a user moves a hat on the joystick\&. The field \fBwhich\fR is the index of the joystick that reported the event and \fBhat\fR is the index of the hat (for a more detailed exlaination see the \fIJoystick section\fR)\&. \fBvalue\fR is the current position of the hat\&. It is a logically OR\&'d combination of the following values (whose meanings should be pretty obvious:) :