SDL_KeyboardEvent.3
资源名称:NETVIDEO.rar [点击查看]
上传用户:sun1608
上传日期:2007-02-02
资源大小:6116k
文件大小:1k
源码类别:
流媒体/Mpeg4/MP4
开发平台:
Visual C++
- .TH "SDL_KeyboardEvent" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference"
- .SH "NAME"
- SDL_KeyboardEvent- Keyboard event structure
- .SH "STRUCTURE DEFINITION"
- .PP
- .nf
- f(CWtypedef struct{
- Uint8 type;
- Uint8 state;
- SDL_keysym keysym;
- } SDL_KeyboardEvent;fR
- .fi
- .PP
- .SH "STRUCTURE DATA"
- .TP 20
- fBtypefR
- fBSDL_KEYDOWNfP or fBSDL_KEYUPfP
- .TP 20
- fBstatefR
- fBSDL_PRESSEDfP or fBSDL_RELEASEDfP
- .TP 20
- fBkeysymfR
- Contains key press information
- .SH "DESCRIPTION"
- .PP
- fBSDL_KeyboardEventfR is a member of the fIfBSDL_EventfRfR union and is used when an event of type fBSDL_KEYDOWNfP or fBSDL_KEYUPfP is reported&.
- .PP
- The fBtypefR and fBstatefR actually report the same information, they just use different values to do it! A keyboard event occurs when a key is released (fBtypefR=fBSDK_KEYUPfP or fBstatefR=fBSDL_RELEASEDfP) and when a key is pressed (fBtypefR=fBSDL_KEYDOWNfP or fBstatefR=fBSDL_PRESSEDfP)&. The information on what key was pressed or released is in the fIfBkeysymfRfR structure&.
- .PP
- .RS
- fBNote:
- .PP
- Repeating fBSDL_KEYDOWNfP events will occur if key repeat is enabled (see fIfBSDL_EnableKeyRepeatfPfR)&.
- .RE
- .SH "SEE ALSO"
- .PP
- fIfBSDL_EventfRfR, fIfBSDL_keysymfRfR, fIfBSDL_EnableKeyRepeatfPfR, fIfBSDL_EnableUNICODEfPfR
- ..." created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59