C# Класс SGDE.Input.Mouse

A mouse input device.
Наследование: InputComponent
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

GetCurrentState() публичный Метод

Get the current Mouse input state.
public GetCurrentState ( ) : Microsoft.Xna.Framework.Input.MouseState
Результат Microsoft.Xna.Framework.Input.MouseState

GetPastState() публичный Метод

Get the past Mouse input state.
public GetPastState ( ) : Microsoft.Xna.Framework.Input.MouseState
Результат Microsoft.Xna.Framework.Input.MouseState

IsButtonClicked() публичный Метод

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.
Результат bool

IsButtonPressed() публичный Метод

Determine if the specified button is pressed.
public IsButtonPressed ( MouseButton but ) : bool
but MouseButton The button to check if pressed.
Результат bool