SDL_GetMouseState.3
资源名称:NETVIDEO.rar [点击查看]
上传用户:sun1608
上传日期:2007-02-02
资源大小:6116k
文件大小:1k
源码类别:
流媒体/Mpeg4/MP4
开发平台:
Visual C++
- .TH "SDL_GetMouseState" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference"
- .SH "NAME"
- SDL_GetMouseState- Retrieve the current state of the mouse
- .SH "SYNOPSIS"
- .PP
- fB#include "SDL&.h"
- .sp
- fBUint8 fBSDL_GetMouseStatefPfR(fBint *x, int *yfR);
- .SH "DESCRIPTION"
- .PP
- The current button state is returned as a button bitmask, which can be tested using the fBSDL_BUTTON(X)fP macros, and fBxfR and fByfR are set to the current mouse cursor position&. You can pass fBNULLfP for either fBxfR or fByfR&.
- .SH "EXAMPLE"
- .PP
- .nf
- f(CWSDL_PumpEvents();
- if(SDL_GetMouseState(NULL, NULL)&SDL_BUTTON(1))
- printf("Mouse Button 1(left) is pressed&.
- ");fR
- .fi
- .PP
- .SH "SEE ALSO"
- .PP
- fIfBSDL_GetRelativeMouseStatefPfR, fIfBSDL_PumpEventsfPfR
- ..." created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59