亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? sdl_event.3

?? 網(wǎng)絡(luò)MPEG4IP流媒體開發(fā)源代碼
?? 3
字號(hào):
.TH "SDL_Event" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference" .SH "NAME"SDL_Event\- General event structure.SH "STRUCTURE DEFINITION".PP.nf\f(CWtypedef union{  Uint8 type;  SDL_ActiveEvent active;  SDL_KeyboardEvent key;  SDL_MouseMotionEvent motion;  SDL_MouseButtonEvent button;  SDL_JoyAxisEvent jaxis;  SDL_JoyBallEvent jball;  SDL_JoyHatEvent jhat;  SDL_JoyButtonEvent jbutton;  SDL_ResizeEvent resize;  SDL_ExposeEvent expose;  SDL_QuitEvent quit;  SDL_UserEvent user;  SDL_SywWMEvent syswm;} SDL_Event;\fR.fi.PP.SH "STRUCTURE DATA".TP 20\fBtype\fRThe type of event.TP 20\fBactive\fR\fIActivation event\fR.TP 20\fBkey\fR\fIKeyboard event\fR.TP 20\fBmotion\fR\fIMouse motion event\fR.TP 20\fBbutton\fR\fIMouse button event\fR.TP 20\fBjaxis\fR\fIJoystick axis motion event\fR.TP 20\fBjball\fR\fIJoystick trackball motion event\fR.TP 20\fBjhat\fR\fIJoystick hat motion event\fR.TP 20\fBjbutton\fR\fIJoystick button event\fR.TP 20\fBresize\fR\fIApplication window resize event\fR.TP 20\fBexpose\fR\fIApplication window expose event\fR.TP 20\fBquit\fR\fIApplication quit request event\fR.TP 20\fBuser\fR\fIUser defined event\fR.TP 20\fBsyswm\fR\fIUndefined window manager event\fR.SH "DESCRIPTION".PPThe \fBSDL_Event\fR union is the core to all event handling is SDL, its probably the most important structure after \fBSDL_Surface\fR\&. \fBSDL_Event\fR is a union of all event structures used in SDL, using it is a simple matter of knowing which union member relates to which event \fBtype\fR\&..PP.TP 20\fBEvent \fBtype\fR\fR\fBEvent Structure\fR.TP 20\fBSDL_ACTIVEEVENT\fP\fI\fBSDL_ActiveEvent\fR\fR.TP 20\fBSDL_KEYDOWN/UP\fP\fI\fBSDL_KeyboardEvent\fR\fR.TP 20\fBSDL_MOUSEMOTION\fP\fI\fBSDL_MouseMotionEvent\fR\fR.TP 20\fBSDL_MOUSEBUTTONDOWN/UP\fP\fI\fBSDL_MouseButtonEvent\fR\fR.TP 20\fBSDL_JOYAXISMOTION\fP\fI\fBSDL_JoyAxisEvent\fR\fR.TP 20\fBSDL_JOYBALLMOTION\fP\fI\fBSDL_JoyBallEvent\fR\fR.TP 20\fBSDL_JOYHATMOTION\fP\fI\fBSDL_JoyHatEvent\fR\fR.TP 20\fBSDL_JOYBUTTONDOWN/UP\fP\fI\fBSDL_JoyButtonEvent\fR\fR.TP 20\fBSDL_QUIT\fP\fI\fBSDL_QuitEvent\fR\fR.TP 20\fBSDL_SYSWMEVENT\fP\fI\fBSDL_SysWMEvent\fR\fR.TP 20\fBSDL_VIDEORESIZE\fP\fI\fBSDL_ResizeEvent\fR\fR.TP 20\fBSDL_VIDEOEXPOSE\fP\fI\fBSDL_ExposeEvent\fR\fR.TP 20\fBSDL_USEREVENT\fP\fI\fBSDL_UserEvent\fR\fR.SH "USE".PPThe \fBSDL_Event\fR structure has two uses.IP "   \(bu" 6Reading events on the event queue.IP "   \(bu" 6Placing events on the event queue.PPReading events from the event queue is done with either \fI\fBSDL_PollEvent\fP\fR or \fI\fBSDL_PeepEvents\fP\fR\&. We\&'ll use \fBSDL_PollEvent\fP and step through an example\&..PPFirst off, we create an empty \fBSDL_Event\fR structure\&. .PP.nf\f(CWSDL_Event test_event;\fR.fi.PP \fBSDL_PollEvent\fP removes the next event from the event queue, if there are no events on the queue it returns \fB0\fR otherwise it returns \fB1\fR\&. We use a \fBwhile\fP loop to process each event in turn\&. .PP.nf\f(CWwhile(SDL_PollEvent(&test_event)) {\fR.fi.PP The \fBSDL_PollEvent\fP function take a pointer to an \fBSDL_Event\fR structure that is to be filled with event information\&. We know that if \fBSDL_PollEvent\fP removes an event from the queue then the event information will be placed in our \fBtest_event\fR structure, but we also know that the \fItype\fP of event will be placed in the \fBtype\fR member of \fBtest_event\fR\&. So to handle each event \fBtype\fR seperately we use a \fBswitch\fP statement\&. .PP.nf\f(CW  switch(test_event\&.type) {\fR.fi.PP We need to know what kind of events we\&'re looking for \fIand\fP the event \fBtype\fR\&'s of those events\&. So lets assume we want to detect where the user is moving the mouse pointer within our application\&. We look through our event types and notice that \fBSDL_MOUSEMOTION\fP is, more than likely, the event we\&'re looking for\&. A little \fImore\fR research tells use that \fBSDL_MOUSEMOTION\fP events are handled within the \fI\fBSDL_MouseMotionEvent\fR\fR structure which is the \fBmotion\fR member of \fBSDL_Event\fR\&. We can check for the \fBSDL_MOUSEMOTION\fP event \fBtype\fR within our \fBswitch\fP statement like so: .PP.nf\f(CW    case SDL_MOUSEMOTION:\fR.fi.PP All we need do now is read the information out of the \fBmotion\fR member of \fBtest_event\fR\&. .PP.nf\f(CW      printf("We got a motion event\&.");      printf("Current mouse position is: (%d, %d)", test_event\&.motion\&.x, test_event\&.motion\&.y);      break;    default:      printf("Unhandled Event!");      break;  }}printf("Event queue empty\&.");\fR.fi.PP.PPIt is also possible to push events onto the event queue and so use it as a two-way communication path\&. Both \fI\fBSDL_PushEvent\fP\fR and \fI\fBSDL_PeepEvents\fP\fR allow you to place events onto the event queue\&. This is usually used to place a \fBSDL_USEREVENT\fP on the event queue, however you could use it to post fake input events if you wished\&. Creating your own events is a simple matter of choosing the event type you want, setting the \fBtype\fR member and filling the appropriate member structure with information\&. .PP.nf\f(CWSDL_Event user_event;user_event\&.type=SDL_USEREVENT;user_event\&.user\&.code=2;user_event\&.user\&.data1=NULL;user_event\&.user\&.data2=NULL;SDL_PushEvent(&user_event);\fR.fi.PP.SH "SEE ALSO".PP\fI\fBSDL_PollEvent\fP\fR, \fI\fBSDL_PushEvent\fP\fR, \fI\fBSDL_PeepEvents\fP\fR...\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
97aⅴ精品视频一二三区| 91免费看视频| 国产综合成人久久大片91| 国产自产高清不卡| 色婷婷综合五月| 欧美精品丝袜久久久中文字幕| 91精品国产综合久久久久久久| 精品国产麻豆免费人成网站| 国产精品视频一二三区| 亚洲自拍偷拍九九九| 日韩高清一级片| 成人精品在线视频观看| 欧美日韩国产综合一区二区| 久久久久久久性| 午夜日韩在线电影| 99久久久久久99| 国产亚洲污的网站| 七七婷婷婷婷精品国产| 丝袜亚洲精品中文字幕一区| 国产成人精品www牛牛影视| 91精品在线观看入口| 中文字幕制服丝袜成人av| 国产精品99久久不卡二区| 欧美精品在线一区二区三区| 国产精品久久久久久久久久久免费看| 亚洲h动漫在线| 欧美福利视频一区| 亚洲一区视频在线观看视频| 99在线精品免费| 一区精品在线播放| 97se狠狠狠综合亚洲狠狠| 国产精品视频在线看| 日韩激情在线观看| 日韩精品最新网址| 亚洲国产成人在线| 国产91丝袜在线18| 国产人成亚洲第一网站在线播放| 国产自产高清不卡| 日本一区二区三区在线不卡| 国产精品资源网站| 中文在线免费一区三区高中清不卡| 美女久久久精品| 国产欧美一区二区精品婷婷| 国产成人免费视频精品含羞草妖精| 久久久午夜电影| 成人高清视频在线| 亚洲欧美日韩国产成人精品影院| 欧美视频在线一区二区三区 | 99视频一区二区三区| 一区二区三区在线免费观看| 欧美日韩激情一区| 国产高清精品网站| 亚洲观看高清完整版在线观看| 5月丁香婷婷综合| 成人手机在线视频| 天堂久久一区二区三区| 亚洲国产精品成人综合色在线婷婷| 99久久国产综合色|国产精品| 日韩精品1区2区3区| 国产精品无码永久免费888| 8x福利精品第一导航| 东方aⅴ免费观看久久av| 免费xxxx性欧美18vr| 亚洲欧美经典视频| 亚洲国产激情av| 欧美一级夜夜爽| 欧美三级在线播放| 色综合久久中文字幕综合网 | 久久综合九色综合欧美就去吻| 欧美日韩综合在线免费观看| jlzzjlzz欧美大全| 国产麻豆视频一区二区| 精品影视av免费| 国产精品久久久久9999吃药| 69精品人人人人| 欧美蜜桃一区二区三区| 欧美揉bbbbb揉bbbbb| 欧美伊人精品成人久久综合97| 大胆亚洲人体视频| 成人手机电影网| 91色综合久久久久婷婷| 成年人国产精品| 色悠久久久久综合欧美99| 97久久久精品综合88久久| 91美女福利视频| 欧美日韩在线亚洲一区蜜芽| 欧美日韩综合在线免费观看| 日韩一区二区三区高清免费看看| 日韩午夜在线播放| 国产三级欧美三级| 亚洲欧美激情在线| 亚洲一区二区在线免费看| 日本亚洲最大的色成网站www| 免费成人在线网站| 丰满放荡岳乱妇91ww| 97se亚洲国产综合自在线不卡| 91福利国产精品| 日韩一区二区三| 亚洲三级免费电影| 久久精品久久99精品久久| 成人免费视频一区二区| 欧美日韩亚洲综合在线| 中文乱码免费一区二区| 五月天中文字幕一区二区| 丁香婷婷综合激情五月色| 精品视频一区三区九区| 国产欧美一区二区三区在线老狼| 综合久久国产九一剧情麻豆| 精品综合久久久久久8888| 一本大道久久a久久综合婷婷| 国产亚洲污的网站| 免费久久精品视频| 91麻豆精品国产| 国产色综合久久| 狠狠色丁香婷综合久久| 欧美日精品一区视频| 亚洲最色的网站| 色噜噜狠狠成人中文综合| 中文字幕一区免费在线观看| 国产精品夜夜爽| 精品国产免费一区二区三区香蕉| 婷婷激情综合网| 911精品国产一区二区在线| 亚洲国产aⅴ天堂久久| 色婷婷久久99综合精品jk白丝| 中文乱码免费一区二区| 成人免费视频一区二区| 成人欧美一区二区三区视频网页 | 国产日本一区二区| 91亚洲大成网污www| 一区二区三区四区在线免费观看| 日本高清免费不卡视频| 午夜一区二区三区视频| 日韩精品综合一本久道在线视频| 免费成人美女在线观看| 精品成人a区在线观看| 国产成人精品免费视频网站| 亚洲欧美日本韩国| 欧美一区二区免费视频| 国产一区不卡在线| 日韩一区在线看| 欧美精品日韩一本| 国产精品一区二区x88av| 亚洲人亚洲人成电影网站色| 日韩视频一区在线观看| 不卡视频一二三| 久久不见久久见中文字幕免费| 国产欧美一区二区三区鸳鸯浴 | 亚洲h在线观看| 欧美高清激情brazzers| 国产一区二区三区精品视频| 成人欧美一区二区三区在线播放| 欧美tk—视频vk| 99免费精品在线| 国产精一品亚洲二区在线视频| 亚洲午夜激情av| 久久亚洲一级片| 日韩亚洲电影在线| 91成人网在线| 韩国成人在线视频| 日本成人在线一区| 偷拍一区二区三区| 玉米视频成人免费看| 亚洲欧美日韩一区| 亚洲欧洲99久久| 国产精品高清亚洲| 国产精品福利在线播放| 中文字幕不卡在线| 国产日韩精品久久久| 国产精品亲子伦对白| 国产精品久久免费看| xvideos.蜜桃一区二区| 在线成人小视频| 日韩美女主播在线视频一区二区三区| 欧美日韩免费高清一区色橹橹 | 欧美激情一区二区三区全黄| 91精品国产福利在线观看 | 午夜精品影院在线观看| 丝袜诱惑亚洲看片| 六月婷婷色综合| 亚洲一区二区欧美日韩| 捆绑变态av一区二区三区 | 欧美一区二区视频网站| 精品乱人伦一区二区三区| 国产欧美精品一区二区三区四区| 久久久精品蜜桃| 一区二区三区在线播| 久久国产剧场电影| gogo大胆日本视频一区| 一本大道综合伊人精品热热 | 国精产品一区一区三区mba桃花 | 粉嫩av一区二区三区在线播放| 国产成人免费视频| 欧美精选一区二区| 自拍视频在线观看一区二区| 亚洲综合视频在线| 91视频免费观看| 国产欧美精品一区二区色综合 | 久久久亚洲高清| 午夜在线电影亚洲一区|