SDL_MouseButtonEvent.3
资源名称:NETVIDEO.rar [点击查看]
上传用户:sun1608
上传日期:2007-02-02
资源大小:6116k
文件大小:1k
源码类别:
流媒体/Mpeg4/MP4
开发平台:
Visual C++
- .TH "SDL_MouseButtonEvent" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference"
- .SH "NAME"
- SDL_MouseButtonEvent- Mouse button event structure
- .SH "STRUCTURE DEFINITION"
- .PP
- .nf
- f(CWtypedef struct{
- Uint8 type;
- Uint8 button;
- Uint8 state;
- Uint16 x, y;
- } SDL_MouseButtonEvent;fR
- .fi
- .PP
- .SH "STRUCTURE DATA"
- .TP 20
- fBtypefR
- fBSDL_MOUSEBUTTONDOWNfP or fBSDL_MOUSEBUTTONUPfP
- .TP 20
- fBbuttonfR
- The mouse button index (SDL_BUTTON_LEFT, SDL_BUTTON_MIDDLE, SDL_BUTTON_RIGHT)
- .TP 20
- fBstatefR
- fBSDL_PRESSEDfP or fBSDL_RELEASEDfP
- .TP 20
- fBxfR, fByfR
- The X/Y coordinates of the mouse at press/release time
- .SH "DESCRIPTION"
- .PP
- fBSDL_MouseButtonEventfR is a member of the fIfBSDL_EventfRfR union and is used when an event of type fBSDL_MOUSEBUTTONDOWNfP or fBSDL_MOUSEBUTTONUPfP is reported&.
- .PP
- When a mouse button press or release is detected then number of the button pressed (from 1 to 255, with 1 usually being the left button and 2 the right) is placed into fBbuttonfR, the position of the mouse when this event occured is stored in the fBxfR and the fByfR fields&. Like fIfBSDL_KeyboardEventfRfR, information on whether the event was a press or a release event is stored in both the fBtypefR and fBstatefR fields, but this should be obvious&.
- .SH "SEE ALSO"
- .PP
- fIfBSDL_EventfRfR, fIfBSDL_MouseMotionEventfRfR
- ..." created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59