C# Класс Gearset.Components.MouseComponent

This is a game component that implements IUpdateable.
Наследование: Gearset.Components.Gear
Показать файл Открыть проект

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