SDL_JoyHatEvent.3
资源名称:NETVIDEO.rar [点击查看]
上传用户:sun1608
上传日期:2007-02-02
资源大小:6116k
文件大小:2k
源码类别:
流媒体/Mpeg4/MP4
开发平台:
Visual C++
- .TH "SDL_JoyHatEvent" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference"
- .SH "NAME"
- 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"
- .TP 20
- fBtypefR
- fBSDL_JOYfP
- .TP 20
- fBwhichfR
- Joystick device index
- .TP 20
- fBhatfR
- Joystick hat index
- .TP 20
- fBvaluefR
- Hat position
- .SH "DESCRIPTION"
- .PP
- fBSDL_JoyHatEventfR is a member of the fIfBSDL_EventfRfR union and is used when an event of type fBSDL_JOYHATMOTIONfP is reported&.
- .PP
- A fBSDL_JOYHATMOTIONfP event occurs when ever a user moves a hat on the joystick&. The field fBwhichfR is the index of the joystick that reported the event and fBhatfR is the index of the hat (for a more detailed exlaination see the fIJoystick sectionfR)&. fBvaluefR is the current position of the hat&. It is a logically OR&'d combination of the following values (whose meanings should be pretty obvious:) :
- .IP "" 10
- fBSDL_HAT_CENTEREDfP
- .IP "" 10
- fBSDL_HAT_UPfP
- .IP "" 10
- fBSDL_HAT_RIGHTfP
- .IP "" 10
- fBSDL_HAT_DOWNfP
- .IP "" 10
- fBSDL_HAT_LEFTfP
- .PP
- The following defines are also provided:
- .IP "" 10
- fBSDL_HAT_RIGHTUPfP
- .IP "" 10
- fBSDL_HAT_RIGHTDOWNfP
- .IP "" 10
- fBSDL_HAT_LEFTUPfP
- .IP "" 10
- fBSDL_HAT_LEFTDOWNfP
- .SH "SEE ALSO"
- .PP
- fIfBSDL_EventfRfR, fIJoystick FunctionsfR, fIfBSDL_JoystickEventStatefPfR, fIfBSDL_JoystickGetHatfPfR
- ..." created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59