C# Class Gearset.Components.MouseComponent

This is a game component that implements IUpdateable.
Inheritance: Gearset.Components.Gear
Afficher le fichier Open project: juancampa/Gearset

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
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

Method Details

IsDragging() public méthode

The mouse mave moved the ClickThreshold since it was pressed.
public IsDragging ( ) : bool
Résultat bool

IsJustDragging() public méthode

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

IsLeftClick() public méthode

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

IsLeftJustDown() public méthode

True if the mouse was just pressed, last one frame true.
public IsLeftJustDown ( ) : bool
Résultat bool

IsLeftJustUp() public méthode

True if the mouse was just released, last one frame true.
public IsLeftJustUp ( ) : bool
Résultat bool

IsRightJustDown() public méthode

True if the mouse was just pressed, last one frame true.
public IsRightJustDown ( ) : bool
Résultat bool

IsRightJustUp() public méthode

True if the mouse was just released, last one frame true.
public IsRightJustUp ( ) : bool
Résultat bool

MouseComponent() public méthode

public MouseComponent ( ) : Microsoft.Xna.Framework
Résultat Microsoft.Xna.Framework

Update() public méthode

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void