C# Class Input.MouseManager

Mostrar archivo Open project: Jewelots/Spelunky-Tiles

Public Methods

Method Description
ButtonDown ( MouseButton button ) : bool

Check if button currently down

ButtonPressed ( MouseButton button ) : bool

Check if button was pressed since last update

ButtonReleased ( MouseButton button ) : bool

Check if button was released since last update

GetPosition ( int &X, int &Y ) : void

Get the position of the mouse cursor (relative to window)

Update ( ) : void

Update the mouse manager's inputs

Method Details

ButtonDown() public static method

Check if button currently down
public static ButtonDown ( MouseButton button ) : bool
button MouseButton Button to check
return bool

ButtonPressed() public static method

Check if button was pressed since last update
public static ButtonPressed ( MouseButton button ) : bool
button MouseButton Button to check
return bool

ButtonReleased() public static method

Check if button was released since last update
public static ButtonReleased ( MouseButton button ) : bool
button MouseButton Button to check
return bool

GetPosition() public static method

Get the position of the mouse cursor (relative to window)
public static GetPosition ( int &X, int &Y ) : void
X int Output X position of the cursor
Y int Output Y position of the cursor
return void

Update() public static method

Update the mouse manager's inputs
public static Update ( ) : void
return void