C# Класс ControllerWin, Coliseo

Наследование: Controller
Показать файл Открыть проект

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

Метод Описание
FixedUpdate ( ) : void

Must be called each frame to ensure accurate reading of *(Down|Up)

GetBumper ( uint bumper ) : bool

Returns true while the specified /bumper/ is held down.

GetBumperDown ( uint bumper ) : bool

Returns true during the frame the user pressed the given /bumper/.

GetBumperUp ( uint bumper ) : bool

Returns true during the frame the user released the given /bumper/.

GetButton ( uint button ) : bool

Returns true while the specified /button/ is held down.

GetButtonDown ( uint button ) : bool

Returns true during the frame the user pressed the given /button/.

GetButtonUp ( uint button ) : bool

Returns true during the frame the user released the given /button/.

GetDPad ( uint direction ) : bool

Returns true while the specified /direction/ is held down.

GetDPadDown ( uint direction ) : bool

Returns true during the frame the user pressed the given /direction/.

GetDPadUp ( uint direction ) : bool

Returns true during the frame the user released the given /direction/.

GetStick ( uint stick ) : Vector2

Returns the values of the axes of the specified /stick/.

GetTrigger ( uint trigger ) : bool

Returns true if the specified /trigger/ is fully pressed.

GetTriggerDown ( uint trigger ) : bool

Returns true during the frame the user fully pressed the given /trigger/.

GetTriggerUp ( uint trigger ) : bool

Returns true during the frame the user fully released the given /trigger/.

IsConnected ( ) : bool

Returns true if a controller is connected.

vibrate ( uint motor, float intensity ) : void

Sets the vibration intensity (0f-1f) of the motor specified by /motor/.

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

Метод Описание
rumble ( ) : void

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

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

Must be called each frame to ensure accurate reading of *(Down|Up)
public FixedUpdate ( ) : void
Результат void

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

Returns true while the specified /bumper/ is held down.
public GetBumper ( uint bumper ) : bool
bumper uint
Результат bool

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

Returns true during the frame the user pressed the given /bumper/.
public GetBumperDown ( uint bumper ) : bool
bumper uint
Результат bool

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

Returns true during the frame the user released the given /bumper/.
public GetBumperUp ( uint bumper ) : bool
bumper uint
Результат bool

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

Returns true while the specified /button/ is held down.
public GetButton ( uint button ) : bool
button uint
Результат bool

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

Returns true during the frame the user pressed the given /button/.
public GetButtonDown ( uint button ) : bool
button uint
Результат bool

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

Returns true during the frame the user released the given /button/.
public GetButtonUp ( uint button ) : bool
button uint
Результат bool

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

Returns true while the specified /direction/ is held down.
public GetDPad ( uint direction ) : bool
direction uint
Результат bool

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

Returns true during the frame the user pressed the given /direction/.
public GetDPadDown ( uint direction ) : bool
direction uint
Результат bool

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

Returns true during the frame the user released the given /direction/.
public GetDPadUp ( uint direction ) : bool
direction uint
Результат bool

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

Returns the values of the axes of the specified /stick/.
public GetStick ( uint stick ) : Vector2
stick uint
Результат Vector2

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

Returns true if the specified /trigger/ is fully pressed.
public GetTrigger ( uint trigger ) : bool
trigger uint
Результат bool

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

Returns true during the frame the user fully pressed the given /trigger/.
public GetTriggerDown ( uint trigger ) : bool
trigger uint
Результат bool

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

Returns true during the frame the user fully released the given /trigger/.
public GetTriggerUp ( uint trigger ) : bool
trigger uint
Результат bool

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

Returns true if a controller is connected.
public IsConnected ( ) : bool
Результат bool

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

Sets the vibration intensity (0f-1f) of the motor specified by /motor/.
public vibrate ( uint motor, float intensity ) : void
motor uint
intensity float
Результат void