public class Mouse
extends java.lang.Object
Constructor and Description |
---|
Mouse() |
Modifier and Type | Method and Description |
---|---|
static MouseState |
GetState()
Gets the current state of the mouse, including mouse position and buttons pressed.
|
static void |
SetPosition(int x,
int y)
Sets the position of the mouse cursor relative to the upper-left corner of the window.
|
public static MouseState GetState()
public static void SetPosition(int x, int y)
x
- The horizontal position of the mouse cursor, relative to the left edge of the game window.y
- The vertical position of the mouse cursor, relative to the upper edge of the game window.