C# Class SGDE.Input.Mouse

A mouse input device.
Inheritance: InputComponent
Show file Open project: sgdc/sgdc-old

Public Methods

Method Description
GetCurrentState ( ) : Microsoft.Xna.Framework.Input.MouseState

Get the current Mouse input state.

GetPastState ( ) : Microsoft.Xna.Framework.Input.MouseState

Get the past Mouse input state.

IsButtonClicked ( MouseButton but ) : bool

Determine if the specified button is clicked. This means that the button is down right now but wasn't always pressed down.

IsButtonPressed ( MouseButton but ) : bool

Determine if the specified button is pressed.

Private Methods

Method Description
GetPosition ( bool cur ) : Vector2
GetScroll ( bool cur ) : int
IsDown ( Microsoft.Xna.Framework.Input.MouseState state, MouseButton but ) : bool
Mouse ( InputManager manager ) : System
SetPosition ( Vector2 value ) : void

Method Details

GetCurrentState() public method

Get the current Mouse input state.
public GetCurrentState ( ) : Microsoft.Xna.Framework.Input.MouseState
return Microsoft.Xna.Framework.Input.MouseState

GetPastState() public method

Get the past Mouse input state.
public GetPastState ( ) : Microsoft.Xna.Framework.Input.MouseState
return Microsoft.Xna.Framework.Input.MouseState

IsButtonClicked() public method

Determine if the specified button is clicked. This means that the button is down right now but wasn't always pressed down.
public IsButtonClicked ( MouseButton but ) : bool
but MouseButton The button to check if pressed.
return bool

IsButtonPressed() public method

Determine if the specified button is pressed.
public IsButtonPressed ( MouseButton but ) : bool
but MouseButton The button to check if pressed.
return bool