|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMicrosoft.Xna.Framework.Input.Mouse
public class Mouse
Allows retrieval of position and button clicks from a mouse input device.
Constructor Summary | |
---|---|
Mouse()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Mouse()
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |