C# Class Gearset.Components.MouseComponent

This is a game component that implements IUpdateable.
Inheritance: Gearset.Components.Gear
Exibir arquivo Open project: juancampa/Gearset

Private Properties

Property Type Description

Public Methods

Method 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 method

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

IsJustDragging() public method

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

IsLeftClick() public method

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

IsLeftJustDown() public method

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

IsLeftJustUp() public method

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

IsRightJustDown() public method

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

IsRightJustUp() public method

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

MouseComponent() public method

public MouseComponent ( ) : Microsoft.Xna.Framework
return Microsoft.Xna.Framework

Update() public method

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