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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? sdl_event.3

?? MPEG-4編解碼的實現(包括MPEG4視音頻編解碼)
?? 3
字號:
.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\fR
The 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"
.PP
The \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"
.PP
The \fBSDL_Event\fR structure has two uses
.IP "   \(bu" 6
Reading events on the event queue
.IP "   \(bu" 6
Placing events on the event queue
.PP
Reading 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\&.
.PP
First 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
.PP
It 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

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品在线播放午夜| 色一情一乱一乱一91av| 91女神在线视频| 欧美日韩一二区| 国产精品视频yy9299一区| 五月激情六月综合| 99久久综合99久久综合网站| 日韩你懂的在线播放| 一区二区三区四区视频精品免费 | 国内精品伊人久久久久影院对白| 不卡高清视频专区| 亚洲精品一区二区三区精华液 | 久久91精品久久久久久秒播| 欧美在线观看视频在线| 日本一二三不卡| 精品一区二区三区影院在线午夜 | caoporm超碰国产精品| 日韩精品在线一区二区| 亚洲午夜久久久久久久久久久| 高清在线不卡av| 久久伊人中文字幕| 久久精品免费看| 欧美日韩亚州综合| 亚洲与欧洲av电影| 99精品1区2区| 国产精品国模大尺度视频| 国产麻豆欧美日韩一区| 欧美mv和日韩mv的网站| 日韩成人免费看| 欧美日韩免费在线视频| 亚洲综合激情小说| 欧美日韩一级二级三级| 午夜成人在线视频| 欧美精品18+| 美女脱光内衣内裤视频久久影院| 欧美精品久久天天躁| 午夜欧美视频在线观看| 欧美日韩国产系列| 日韩和欧美一区二区三区| 欧美色精品在线视频| 亚洲国产成人av| 91精品国产综合久久香蕉的特点| 日韩二区三区四区| 日韩亚洲欧美在线| 韩国三级在线一区| 国产日产欧美精品一区二区三区| 国产成人免费在线观看不卡| 日本一区二区三区四区| 99re热视频精品| 亚洲国产成人91porn| 欧美日产国产精品| 蜜桃av一区二区在线观看| 精品av久久707| 不卡av免费在线观看| 自拍偷拍国产精品| 9191成人精品久久| 国产电影一区二区三区| 亚洲三级电影网站| 在线成人小视频| 国产精品系列在线播放| 亚洲欧美另类在线| 91精品中文字幕一区二区三区| 毛片av一区二区| 中文字幕久久午夜不卡| 欧美性猛交xxxxxx富婆| 久久精品国产成人一区二区三区| 欧美极品美女视频| 欧美亚洲国产bt| 久久不见久久见免费视频7| 国产精品女主播在线观看| 欧美亚洲综合另类| 国产成人自拍在线| 性欧美疯狂xxxxbbbb| 国产香蕉久久精品综合网| 日本福利一区二区| 久草这里只有精品视频| 亚洲卡通欧美制服中文| 精品美女一区二区三区| 色婷婷狠狠综合| 国产成人在线看| 日韩av电影天堂| 亚洲欧美日韩国产综合在线 | 色狠狠av一区二区三区| 国产一区不卡在线| 亚洲成人福利片| 亚洲国产高清aⅴ视频| 欧美日韩国产大片| 99久久久免费精品国产一区二区| 激情丁香综合五月| 亚洲午夜激情av| 亚洲色图制服诱惑| 欧美国产一区在线| 欧美成人官网二区| 91精品国产高清一区二区三区| 91丝袜美女网| 东方欧美亚洲色图在线| 久久精品国产久精国产| 丝袜a∨在线一区二区三区不卡| 国产农村妇女毛片精品久久麻豆 | 欧美视频中文字幕| 白白色亚洲国产精品| 国产伦精一区二区三区| 麻豆精品一二三| 日韩精品一卡二卡三卡四卡无卡| 夜夜揉揉日日人人青青一国产精品 | 免费观看在线综合| 香蕉成人啪国产精品视频综合网| 亚洲欧美色图小说| 亚洲精品国产高清久久伦理二区| 国产日韩综合av| 久久久久久久久一| 欧美r级电影在线观看| 欧美大片在线观看| 欧美www视频| 欧美哺乳videos| 欧美tickle裸体挠脚心vk| 精品电影一区二区三区| 日韩视频在线一区二区| 日韩精品一区二区三区swag| 日韩一级大片在线| 久久综合九色综合欧美98| 欧美电视剧在线观看完整版| 精品国产91久久久久久久妲己 | 久久精品国产澳门| 免费高清不卡av| 国产美女精品在线| 国产成人免费网站| 99久久国产综合精品色伊| 99久久777色| 欧美三级欧美一级| 欧美精品丝袜中出| 精品国产凹凸成av人导航| 国产清纯白嫩初高生在线观看91| 久久精品欧美一区二区三区麻豆| 国产欧美日韩一区二区三区在线观看| 国产精品网站在线播放| 亚洲精品乱码久久久久久黑人| 亚洲一区免费视频| 理论片日本一区| 成人午夜视频网站| 欧美自拍偷拍一区| 欧美成人艳星乳罩| 综合久久给合久久狠狠狠97色| 一区二区视频在线| 蜜桃一区二区三区在线| 国产一级精品在线| 日本丰满少妇一区二区三区| 欧美一卡2卡三卡4卡5免费| 久久精品视频在线看| 一区二区三区国产精品| 捆绑调教美女网站视频一区| 国产精品亚洲а∨天堂免在线| 一本到高清视频免费精品| 日韩欧美综合一区| 亚洲男帅同性gay1069| 久久国产欧美日韩精品| 91在线观看污| 欧美成人午夜电影| 亚洲品质自拍视频网站| 免费日本视频一区| 一道本成人在线| www国产亚洲精品久久麻豆| 亚洲男人天堂一区| 国产精品主播直播| 欧美日韩电影在线| 中文字幕中文字幕一区| 免费的国产精品| 欧美亚洲一区二区在线| 亚洲国产精品激情在线观看| 奇米影视一区二区三区小说| 99re热这里只有精品免费视频| 精品国产一二三区| 日精品一区二区三区| 北条麻妃国产九九精品视频| 精品国产百合女同互慰| 丝袜亚洲另类欧美| 色www精品视频在线观看| 国产亚洲综合性久久久影院| 日本在线不卡视频一二三区| 色综合av在线| 综合色中文字幕| 国产成人免费9x9x人网站视频| 日韩一区二区在线播放| 一区二区三区**美女毛片| 99久久精品免费观看| 国产欧美一区二区三区在线老狼| 麻豆免费看一区二区三区| 欧美天堂一区二区三区| 亚洲女与黑人做爰| 9i在线看片成人免费| 国产性色一区二区| 国产不卡视频一区二区三区| 欧美tk—视频vk| 精品一区二区三区在线播放视频| 欧美丰满嫩嫩电影| 污片在线观看一区二区| 欧美日韩美女一区二区| 亚洲一区二区视频在线观看| 欧美在线高清视频| 玉米视频成人免费看|