Annotated edit history of
SDL_GetMouseState(3) version 2, including all changes.
View license author blame.
| Rev |
Author |
# |
Line |
| 2 |
perry |
1 |
SDL_!GetMouseState |
| |
|
2 |
!!!SDL_!GetMouseState |
| 1 |
perry |
3 |
NAME |
| |
|
4 |
SYNOPSIS |
| |
|
5 |
DESCRIPTION |
| |
|
6 |
EXAMPLE |
| |
|
7 |
SEE ALSO |
| |
|
8 |
---- |
| |
|
9 |
!!NAME |
| |
|
10 |
|
| |
|
11 |
|
| 2 |
perry |
12 |
SDL_!GetMouseState- Retrieve the current state of the mouse |
| 1 |
perry |
13 |
!!SYNOPSIS |
| |
|
14 |
|
| |
|
15 |
|
| |
|
16 |
__#include __ |
| |
|
17 |
|
| |
|
18 |
|
| 2 |
perry |
19 |
__Uint8 SDL_!GetMouseState__(__int *x, int |
| 1 |
perry |
20 |
*y__); |
| |
|
21 |
!!DESCRIPTION |
| |
|
22 |
|
| |
|
23 |
|
| |
|
24 |
The current button state is returned as a button bitmask, |
| |
|
25 |
which can be tested using the __SDL_BUTTON(X)__ macros, |
| |
|
26 |
and __x__ and __y__ are set to the current mouse |
| |
|
27 |
cursor position. You can pass __NULL__ for either |
| |
|
28 |
__x__ or __y__. |
| |
|
29 |
!!EXAMPLE |
| |
|
30 |
|
| |
|
31 |
|
| 2 |
perry |
32 |
SDL_!PumpEvents(); |
| |
|
33 |
if(SDL_!GetMouseState(NULL, NULL) |
| 1 |
perry |
34 |
!!SEE ALSO |
| |
|
35 |
|
| |
|
36 |
|
| 2 |
perry |
37 |
__SDL_!GetRelativeMouseState__, |
| |
|
38 |
__SDL_!PumpEvents__ |
| 1 |
perry |
39 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.