C# Class Sharpex2D.Input.Implementation.Mouse

Inheritance: IMouse
Show file Open project: ThuCommix/Sharpex2D

Public Methods

Method Description
GetState ( ) : MouseState

Gets the State.

Initialize ( ) : void

Initializes the input.

Mouse ( ) : System

Initializes a new Mouse class.

Update ( GameTime gameTime ) : void

Updates the object.

Private Methods

Method Description
MouseDown ( object sender, MouseEventArgs e ) : void

Triggered if the mouse buttons are pressed down.

MouseMove ( object sender, MouseEventArgs e ) : void

Triggered if the mouse moved.

MouseUp ( object sender, MouseEventArgs e ) : void

Triggered if the mouse buttons are pressed up.

SetButtonState ( MouseButtons button, bool state ) : void

Sets the internal button state.

Method Details

GetState() public method

Gets the State.
public GetState ( ) : MouseState
return MouseState

Initialize() public method

Initializes the input.
public Initialize ( ) : void
return void

Mouse() public method

Initializes a new Mouse class.
public Mouse ( ) : System
return System

Update() public method

Updates the object.
public Update ( GameTime gameTime ) : void
gameTime GameTime The GameTime.
return void