C# Класс CarpMuffin.Input.GamePadManager

Manages Gamepads
Наследование: IUpdatable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GamePadManager ( ) : CarpMuffin.Graphics
GetCurrentButtonState ( PlayerIndex playerIndex ) : GamePadButtonState
GetCurrentState ( PlayerIndex playerIndex ) : GamePadState
GetPreviousButtonState ( PlayerIndex playerIndex ) : GamePadButtonState
GetPreviousState ( PlayerIndex playerIndex ) : GamePadState
IsAnyButtonPressed ( PlayerIndex playerIndex ) : bool
IsButtonHeld ( PlayerIndex playerIndex, Buttons button ) : bool
IsButtonPressed ( PlayerIndex playerIndex, Buttons button ) : bool
IsButtonReleased ( PlayerIndex playerIndex, Buttons button ) : bool
IsConnected ( PlayerIndex playerIndex ) : bool
Update ( GameTime gameTime ) : void

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

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

public GamePadManager ( ) : CarpMuffin.Graphics
Результат CarpMuffin.Graphics

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

public GetCurrentButtonState ( PlayerIndex playerIndex ) : GamePadButtonState
playerIndex PlayerIndex
Результат GamePadButtonState

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

public GetCurrentState ( PlayerIndex playerIndex ) : GamePadState
playerIndex PlayerIndex
Результат Microsoft.Xna.Framework.Input.GamePadState

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

public GetPreviousButtonState ( PlayerIndex playerIndex ) : GamePadButtonState
playerIndex PlayerIndex
Результат GamePadButtonState

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

public GetPreviousState ( PlayerIndex playerIndex ) : GamePadState
playerIndex PlayerIndex
Результат Microsoft.Xna.Framework.Input.GamePadState

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

public IsAnyButtonPressed ( PlayerIndex playerIndex ) : bool
playerIndex PlayerIndex
Результат bool

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

public IsButtonHeld ( PlayerIndex playerIndex, Buttons button ) : bool
playerIndex PlayerIndex
button Buttons
Результат bool

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

public IsButtonPressed ( PlayerIndex playerIndex, Buttons button ) : bool
playerIndex PlayerIndex
button Buttons
Результат bool

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

public IsButtonReleased ( PlayerIndex playerIndex, Buttons button ) : bool
playerIndex PlayerIndex
button Buttons
Результат bool

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

public IsConnected ( PlayerIndex playerIndex ) : bool
playerIndex PlayerIndex
Результат bool

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

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Результат void