C# Класс Cascade.Controls

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ScreenSize Vector2
controlMode int
jump bool
mouse Microsoft.Xna.Framework.Input.MouseState
mouseCB3 int
mouseLB3 int
mousePos Vector2
mouseRB3 int

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

Метод Описание
Controls ( ) : System
GetButton ( Buttons b ) : ControlState
GetButtonReleaseTime ( Buttons b ) : int
GetButtonTime ( Buttons b ) : int
GetKey ( Keys k ) : ControlState
GetKeyReleaseTime ( Keys k ) : int
GetKeyTime ( Keys k ) : int
getButton ( Buttons b ) : int
getButton ( String b ) : int
getButtonReleaseTime ( String s ) : int
getButtonTime ( String s ) : int
getKey ( Keys k ) : int
getKey ( String s ) : int
getKeyReleaseTime ( String s ) : int
getKeyTime ( String s ) : int
update ( ) : void
vibrate ( float intensity, float speed ) : void

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

Метод Описание
addButton ( Buttons b ) : void
addKey ( Keys k ) : void
intToState ( int i ) : ControlState

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

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

public Controls ( ) : System
Результат System

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

public static GetButton ( Buttons b ) : ControlState
b Buttons
Результат ControlState

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

public static GetButtonReleaseTime ( Buttons b ) : int
b Buttons
Результат int

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

public static GetButtonTime ( Buttons b ) : int
b Buttons
Результат int

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

public static GetKey ( Keys k ) : ControlState
k Keys
Результат ControlState

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

public static GetKeyReleaseTime ( Keys k ) : int
k Keys
Результат int

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

public static GetKeyTime ( Keys k ) : int
k Keys
Результат int

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

public getButton ( Buttons b ) : int
b Buttons
Результат int

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

public getButton ( String b ) : int
b String
Результат int

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

public getButtonReleaseTime ( String s ) : int
s String
Результат int

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

public getButtonTime ( String s ) : int
s String
Результат int

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

public getKey ( Keys k ) : int
k Keys
Результат int

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

public getKey ( String s ) : int
s String
Результат int

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

public getKeyReleaseTime ( String s ) : int
s String
Результат int

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

public getKeyTime ( String s ) : int
s String
Результат int

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

public update ( ) : void
Результат void

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

public vibrate ( float intensity, float speed ) : void
intensity float
speed float
Результат void

Описание свойств

ScreenSize публичное статическое свойство

public static Vector2 ScreenSize
Результат Vector2

controlMode публичное свойство

public int controlMode
Результат int

jump публичное свойство

public bool jump
Результат bool

mouse публичное статическое свойство

public static MouseState,Microsoft.Xna.Framework.Input mouse
Результат Microsoft.Xna.Framework.Input.MouseState

mouseCB3 публичное свойство

public int mouseCB3
Результат int

mouseLB3 публичное свойство

public int mouseLB3
Результат int

mousePos публичное статическое свойство

public static Vector2 mousePos
Результат Vector2

mouseRB3 публичное свойство

public int mouseRB3
Результат int