1 .TH "SDL_JoyHatEvent" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference"
3 SDL_JoyHatEvent\- Joystick hat position change event structure
4 .SH "STRUCTURE DEFINITION"
30 \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\&.
32 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:) :
34 \fBSDL_HAT_CENTERED\fP
44 The following defines are also provided:
48 \fBSDL_HAT_RIGHTDOWN\fP
52 \fBSDL_HAT_LEFTDOWN\fP
55 \fI\fBSDL_Event\fR\fR, \fIJoystick Functions\fR, \fI\fBSDL_JoystickEventState\fP\fR, \fI\fBSDL_JoystickGetHat\fP\fR
56 ...\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59