Tao.Sdl SDK Documentation |
|
Sdl.SDL_GetRelativeMouseState Method
Retrieve the current state of the mouse.
[Visual Basic]
Public Shared Function SDL_GetRelativeMouseState( _
ByRef
x As
Integer, _
ByRef
y As
Integer _
) As
Byte
[C#]
public static
byte SDL_GetRelativeMouseState(
out
int x,
out
int y);
Parameters
-
x
-
-
y
-
Return Value
The current button state is returned as a button bitmask
Remarks
The current button state is returned as a button bitmask, which can be tested using the SDL_BUTTON(X) macros, and x and y are set to the change in the mouse position since the last call to SDL_GetRelativeMouseState or since event initialization. You can pass NULL for either x or y.
Binds to C-function call in SDL_mouse.h:
Uint8 SDL_GetRelativeMouseState(int *x, int *y);
See Also
Sdl Class | Tao.Sdl Namespace | SDL_GetMouseState