C# Класс Sharpex2D.Input.Gamepad

Показать файл Открыть проект

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

Метод Описание
BatteryLevel ( PlayerIndex playerIndex ) : BatteryLevel

Gets the BatteryLevel.

GetState ( PlayerIndex playerIndex ) : GamepadState

Gets the GamepadState.

IsAvailable ( PlayerIndex playerIndex ) : bool

A value indicating whether the Gamepad is available.

Vibrate ( PlayerIndex playerIndex, float left, float right, float length ) : void

Vibrates the Gamepad.

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

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

Gets the BatteryLevel.
public static BatteryLevel ( PlayerIndex playerIndex ) : BatteryLevel
playerIndex PlayerIndex The PlayerIndex.
Результат BatteryLevel

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

Gets the GamepadState.
public static GetState ( PlayerIndex playerIndex ) : GamepadState
playerIndex PlayerIndex The PlayerIndex.
Результат GamepadState

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

A value indicating whether the Gamepad is available.
public static IsAvailable ( PlayerIndex playerIndex ) : bool
playerIndex PlayerIndex The PlayerIndex.
Результат bool

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

Vibrates the Gamepad.
public static Vibrate ( PlayerIndex playerIndex, float left, float right, float length ) : void
playerIndex PlayerIndex The PlayerIndex.
left float The Left.
right float The Right.
length float The Length.
Результат void