C# 클래스 SadConsole.Input.MouseInfo

Processes mouse input data.
파일 보기 프로젝트 열기: Thraka/SadConsole 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Cell Cell
Console IConsole
ConsoleLocation Microsoft.Xna.Framework.Point
ScreenLocation Microsoft.Xna.Framework.Point
WorldLocation Microsoft.Xna.Framework.Point

공개 메소드들

메소드 설명
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.

메소드 상세

Clone() 공개 메소드

Returns a clone of this object.
public Clone ( ) : MouseInfo
리턴 MouseInfo

Fill() 공개 메소드

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.
리턴 void

ProcessMouse() 공개 메소드

Fills out the state of the mouse.
public ProcessMouse ( GameTime gameTime ) : void
gameTime GameTime
리턴 void

프로퍼티 상세

Cell 공개적으로 프로퍼티

The cell of the current console under the mouse.
public Cell Cell
리턴 Cell

Console 공개적으로 프로퍼티

The current console under the mouse.
public IConsole Console
리턴 IConsole

ConsoleLocation 공개적으로 프로퍼티

Which cell x,y the mouse is over on the console.
public Point,Microsoft.Xna.Framework ConsoleLocation
리턴 Microsoft.Xna.Framework.Point

ScreenLocation 공개적으로 프로퍼티

Where the mouse is located on the screen.
public Point,Microsoft.Xna.Framework ScreenLocation
리턴 Microsoft.Xna.Framework.Point

WorldLocation 공개적으로 프로퍼티

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