C# Класс Indiefreaks.Xna.Input.InputManager.InputManager

Наследование: Microsoft.Xna.Framework.DrawableGameComponent
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
Player1 PlayerInput
Player2 PlayerInput
Player3 PlayerInput
Player4 PlayerInput

Private Properties

Свойство Тип Описание
DrawButton void
DrawStick void
OnAllInputDevicesDisconnected void
OnPlayerConnected void
OnPlayerDisconnected void
UpdateWindowsInput void
UpdateWindowsTouchInput void

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

Метод Описание
Draw ( GameTime gameTime ) : void
DrawButton ( VirtualGamePadButtonSkin buttonSkin, TouchMap touchMap, float value, float elapsedTime ) : void
GetPlayerInput ( PlayerIndex playerIndex ) : PlayerInput
InputManager ( Application application ) : System

Creates a new instance of the InputManager component and adds itself to the game's component collection as well as Service

Update ( GameTime gameTime ) : void

Updates the object and its contained resources.

Защищенные методы

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

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

Метод Описание
DrawButton ( VirtualGamePadButtonSkin buttonSkin, TouchMap touchMap, Button button, float elapsedTime ) : void
DrawStick ( VirtualGamePadStickSkin stickSkin, TouchMap touchMap, float elapsedTime ) : void
OnAllInputDevicesDisconnected ( ) : void

Called when no input devices are connected to the machine.

OnPlayerConnected ( object sender, EventArgs e ) : void

Called when an input device gets connected to the machine.

OnPlayerDisconnected ( object sender, EventArgs e ) : void

Called when an input device gets disconnected to the machine.

UpdateWindowsInput ( long tick ) : void
UpdateWindowsTouchInput ( ) : void

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

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

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

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

public DrawButton ( VirtualGamePadButtonSkin buttonSkin, TouchMap touchMap, float value, float elapsedTime ) : void
buttonSkin VirtualGamePadButtonSkin
touchMap TouchMap
value float
elapsedTime float
Результат void

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

public GetPlayerInput ( PlayerIndex playerIndex ) : PlayerInput
playerIndex PlayerIndex
Результат PlayerInput

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

Creates a new instance of the InputManager component and adds itself to the game's component collection as well as Service
public InputManager ( Application application ) : System
application Application The game instance
Результат System

LoadContent() защищенный Метод

protected LoadContent ( ) : void
Результат void

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

Updates the object and its contained resources.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Результат void

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

Player1 защищенное свойство

protected PlayerInput,Indiefreaks.Xna.Input Player1
Результат PlayerInput

Player2 защищенное свойство

protected PlayerInput,Indiefreaks.Xna.Input Player2
Результат PlayerInput

Player3 защищенное свойство

protected PlayerInput,Indiefreaks.Xna.Input Player3
Результат PlayerInput

Player4 защищенное свойство

protected PlayerInput,Indiefreaks.Xna.Input Player4
Результат PlayerInput