Microsoft.Xna.Framework.Input
Class Mouse

java.lang.Object
  extended by Microsoft.Xna.Framework.Input.Mouse

public class Mouse
extends java.lang.Object

Allows retrieval of position and button clicks from a mouse input device.

Author:
Halofreak1990

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

Mouse

public Mouse()
Method Detail

GetState

public static MouseState GetState()
Gets the current state of the mouse, including mouse position and buttons pressed.

Returns:
Current state of the mouse.

SetPosition

public static void SetPosition(int x,
                               int y)
Sets the position of the mouse cursor relative to the upper-left corner of the window.

Parameters:
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.