C# Class SadConsole.Input.MouseInfo

Processes mouse input data.
Afficher le fichier Open project: Thraka/SadConsole Class Usage Examples

Méthodes publiques

Свойство Type Description
Cell Cell
Console IConsole
ConsoleLocation Microsoft.Xna.Framework.Point
ScreenLocation Microsoft.Xna.Framework.Point
WorldLocation Microsoft.Xna.Framework.Point

Méthodes publiques

Méthode Description
Clone ( ) : MouseInfo

Returns a clone of this object.

Fill ( IConsole data ) : void

Sets the WorldLocation and ConsoleLocation properties based on the cell size of the provided console. If absolute positioning is used on the console, then the properties will represent pixels.

This method alters the data of the mouse information based on the provided console. It

ProcessMouse ( GameTime gameTime ) : void

Fills out the state of the mouse.

Method Details

Clone() public méthode

Returns a clone of this object.
public Clone ( ) : MouseInfo
Résultat MouseInfo

Fill() public méthode

Sets the WorldLocation and ConsoleLocation properties based on the cell size of the provided console. If absolute positioning is used on the console, then the properties will represent pixels.
This method alters the data of the mouse information based on the provided console. It
public Fill ( IConsole data ) : void
data IConsole The console to get the data from.
Résultat void

ProcessMouse() public méthode

Fills out the state of the mouse.
public ProcessMouse ( GameTime gameTime ) : void
gameTime GameTime
Résultat void

Property Details

Cell public_oe property

The cell of the current console under the mouse.
public Cell Cell
Résultat Cell

Console public_oe property

The current console under the mouse.
public IConsole Console
Résultat IConsole

ConsoleLocation public_oe property

Which cell x,y the mouse is over on the console.
public Point,Microsoft.Xna.Framework ConsoleLocation
Résultat Microsoft.Xna.Framework.Point

ScreenLocation public_oe property

Where the mouse is located on the screen.
public Point,Microsoft.Xna.Framework ScreenLocation
Résultat Microsoft.Xna.Framework.Point

WorldLocation public_oe property

What cell in the gameworld (top-left of window is 0,0) the mouse is located.
public Point,Microsoft.Xna.Framework WorldLocation
Résultat Microsoft.Xna.Framework.Point