C# 클래스 Gearset.Components.MouseComponent

This is a game component that implements IUpdateable.
상속: Gearset.Components.Gear
파일 보기 프로젝트 열기: juancampa/Gearset

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
IsDragging ( ) : bool

The mouse mave moved the ClickThreshold since it was pressed.

IsJustDragging ( ) : bool

The mouse just moved the threshold, this will only be true for one frame.

IsLeftClick ( ) : bool

True if mouse did a released-pressed-released cycle without moving the ClickThreshold.

IsLeftJustDown ( ) : bool

True if the mouse was just pressed, last one frame true.

IsLeftJustUp ( ) : bool

True if the mouse was just released, last one frame true.

IsRightJustDown ( ) : bool

True if the mouse was just pressed, last one frame true.

IsRightJustUp ( ) : bool

True if the mouse was just released, last one frame true.

MouseComponent ( ) : Microsoft.Xna.Framework
Update ( GameTime gameTime ) : void

메소드 상세

IsDragging() 공개 메소드

The mouse mave moved the ClickThreshold since it was pressed.
public IsDragging ( ) : bool
리턴 bool

IsJustDragging() 공개 메소드

The mouse just moved the threshold, this will only be true for one frame.
public IsJustDragging ( ) : bool
리턴 bool

IsLeftClick() 공개 메소드

True if mouse did a released-pressed-released cycle without moving the ClickThreshold.
public IsLeftClick ( ) : bool
리턴 bool

IsLeftJustDown() 공개 메소드

True if the mouse was just pressed, last one frame true.
public IsLeftJustDown ( ) : bool
리턴 bool

IsLeftJustUp() 공개 메소드

True if the mouse was just released, last one frame true.
public IsLeftJustUp ( ) : bool
리턴 bool

IsRightJustDown() 공개 메소드

True if the mouse was just pressed, last one frame true.
public IsRightJustDown ( ) : bool
리턴 bool

IsRightJustUp() 공개 메소드

True if the mouse was just released, last one frame true.
public IsRightJustUp ( ) : bool
리턴 bool

MouseComponent() 공개 메소드

public MouseComponent ( ) : Microsoft.Xna.Framework
리턴 Microsoft.Xna.Framework

Update() 공개 메소드

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
리턴 void