C# Класс InControl.InputDevice

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

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

Свойство Тип Описание
Null InputDevice
SortOrder int
player int

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

Метод Описание
Action1 ( int player = -1 ) : InputControl
Action2 ( int player = -1 ) : InputControl
Action3 ( int player = -1 ) : InputControl
Action4 ( int player = -1 ) : InputControl
AddControl ( InputControlType target, string handle, int player = -1 ) : InputControl
DPadDown ( int player = -1 ) : InputControl
DPadLeft ( int player = -1 ) : InputControl
DPadRight ( int player = -1 ) : InputControl
DPadUp ( int player = -1 ) : InputControl
DPadVector ( int player = -1 ) : Vector2
DPadX ( int player = -1 ) : float
DPadY ( int player = -1 ) : float
Direction ( int player = -1 ) : Vector2
GetControl ( Enum inputControlType, int player = -1 ) : InputControl
GetControlByName ( string inputControlName, int player = -1 ) : InputControl
GetInputControlTypeByName ( string inputControlName ) : InputControlType
InputDevice ( string name ) : System
LastChangedAfter ( InputDevice otherDevice ) : bool
LeftBumper ( int player = -1 ) : InputControl
LeftStickButton ( int player = -1 ) : InputControl
LeftStickVector ( int player = -1 ) : Vector2
LeftStickX ( int player = -1 ) : InputControl
LeftStickY ( int player = -1 ) : InputControl
LeftTrigger ( int player = -1 ) : InputControl
PostUpdate ( ulong updateTick, float deltaTime ) : void
PreUpdate ( ulong updateTick, float deltaTime ) : void
RightBumper ( int player = -1 ) : InputControl
RightStickButton ( int player = -1 ) : InputControl
RightStickVector ( int player = -1 ) : Vector2
RightStickX ( int player = -1 ) : InputControl
RightStickY ( int player = -1 ) : InputControl
RightTrigger ( int player = -1 ) : InputControl
Update ( ulong updateTick, float deltaTime ) : void
UpdateWithState ( InputControlType inputControlType, bool state, ulong updateTick, int player = -1 ) : void
UpdateWithValue ( InputControlType inputControlType, float value, ulong updateTick, int player = -1 ) : void
Vibrate ( float intensity ) : void
Vibrate ( float leftMotor, float rightMotor ) : void

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

Метод Описание
ApplyCircularDeadZone ( float axisValue1, float axisValue2, float lowerDeadZone, float upperDeadZone ) : float
ApplyDeadZone ( float value, float lowerDeadZone, float upperDeadZone ) : float
ApplySmoothing ( float thisValue, float lastValue, float deltaTime, float sensitivity ) : float
ProcessAnalogControlValue ( InputControl control, float deltaTime ) : float

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

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

public Action1 ( int player = -1 ) : InputControl
player int
Результат InputControl

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

public Action2 ( int player = -1 ) : InputControl
player int
Результат InputControl

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

public Action3 ( int player = -1 ) : InputControl
player int
Результат InputControl

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

public Action4 ( int player = -1 ) : InputControl
player int
Результат InputControl

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

public AddControl ( InputControlType target, string handle, int player = -1 ) : InputControl
target InputControlType
handle string
player int
Результат InputControl

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

public DPadDown ( int player = -1 ) : InputControl
player int
Результат InputControl

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

public DPadLeft ( int player = -1 ) : InputControl
player int
Результат InputControl

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

public DPadRight ( int player = -1 ) : InputControl
player int
Результат InputControl

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

public DPadUp ( int player = -1 ) : InputControl
player int
Результат InputControl

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

public DPadVector ( int player = -1 ) : Vector2
player int
Результат Vector2

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

public DPadX ( int player = -1 ) : float
player int
Результат float

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

public DPadY ( int player = -1 ) : float
player int
Результат float

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

public Direction ( int player = -1 ) : Vector2
player int
Результат Vector2

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

public GetControl ( Enum inputControlType, int player = -1 ) : InputControl
inputControlType System.Enum
player int
Результат InputControl

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

public GetControlByName ( string inputControlName, int player = -1 ) : InputControl
inputControlName string
player int
Результат InputControl

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

public static GetInputControlTypeByName ( string inputControlName ) : InputControlType
inputControlName string
Результат InputControlType

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

public InputDevice ( string name ) : System
name string
Результат System

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

public LastChangedAfter ( InputDevice otherDevice ) : bool
otherDevice InputDevice
Результат bool

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

public LeftBumper ( int player = -1 ) : InputControl
player int
Результат InputControl

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

public LeftStickButton ( int player = -1 ) : InputControl
player int
Результат InputControl

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

public LeftStickVector ( int player = -1 ) : Vector2
player int
Результат Vector2

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

public LeftStickX ( int player = -1 ) : InputControl
player int
Результат InputControl

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

public LeftStickY ( int player = -1 ) : InputControl
player int
Результат InputControl

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

public LeftTrigger ( int player = -1 ) : InputControl
player int
Результат InputControl

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

public PostUpdate ( ulong updateTick, float deltaTime ) : void
updateTick ulong
deltaTime float
Результат void

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

public PreUpdate ( ulong updateTick, float deltaTime ) : void
updateTick ulong
deltaTime float
Результат void

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

public RightBumper ( int player = -1 ) : InputControl
player int
Результат InputControl

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

public RightStickButton ( int player = -1 ) : InputControl
player int
Результат InputControl

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

public RightStickVector ( int player = -1 ) : Vector2
player int
Результат Vector2

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

public RightStickX ( int player = -1 ) : InputControl
player int
Результат InputControl

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

public RightStickY ( int player = -1 ) : InputControl
player int
Результат InputControl

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

public RightTrigger ( int player = -1 ) : InputControl
player int
Результат InputControl

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

public Update ( ulong updateTick, float deltaTime ) : void
updateTick ulong
deltaTime float
Результат void

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

public UpdateWithState ( InputControlType inputControlType, bool state, ulong updateTick, int player = -1 ) : void
inputControlType InputControlType
state bool
updateTick ulong
player int
Результат void

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

public UpdateWithValue ( InputControlType inputControlType, float value, ulong updateTick, int player = -1 ) : void
inputControlType InputControlType
value float
updateTick ulong
player int
Результат void

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

public Vibrate ( float intensity ) : void
intensity float
Результат void

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

public Vibrate ( float leftMotor, float rightMotor ) : void
leftMotor float
rightMotor float
Результат void

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

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

public static InputDevice Null
Результат InputDevice

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

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

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

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