C# Класс SFML.Window.Mouse

Give access to the real-time state of the mouse
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GetPosition ( ) : Vector2i

Get the current position of the mouse

GetPosition ( Window relativeTo ) : Vector2i

Get the current position of the mouse

IsButtonPressed ( Button button ) : bool

Check if a mouse button is pressed

SetPosition ( Vector2i position ) : void

Set the current position of the mouse

SetPosition ( Vector2i position, Window relativeTo ) : void

Set the current position of the mouse

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

Метод Описание
sfMouse_getPosition ( IntPtr relativeTo ) : Vector2i
sfMouse_isButtonPressed ( Button button ) : bool
sfMouse_setPosition ( Vector2i position, IntPtr relativeTo ) : void

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

GetPosition() публичный статический Метод

Get the current position of the mouse
public static GetPosition ( ) : Vector2i
Результат Vector2i

GetPosition() публичный статический Метод

Get the current position of the mouse
public static GetPosition ( Window relativeTo ) : Vector2i
relativeTo Window Reference window
Результат Vector2i

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

Check if a mouse button is pressed
public static IsButtonPressed ( Button button ) : bool
button Button Button to check
Результат bool

SetPosition() публичный статический Метод

Set the current position of the mouse
public static SetPosition ( Vector2i position ) : void
position Vector2i New position of the mouse
Результат void

SetPosition() публичный статический Метод

Set the current position of the mouse
public static SetPosition ( Vector2i position, Window relativeTo ) : void
position Vector2i New position of the mouse
relativeTo Window Reference window
Результат void