C# Class Indiefreaks.Xna.Input.InputManager.InputManager

Inheritance: Microsoft.Xna.Framework.DrawableGameComponent
Afficher le fichier Open project: Indiefreaks/igf

Protected Properties

Свойство Type Description
Player1 PlayerInput
Player2 PlayerInput
Player3 PlayerInput
Player4 PlayerInput

Private Properties

Свойство Type Description
DrawButton void
DrawStick void
OnAllInputDevicesDisconnected void
OnPlayerConnected void
OnPlayerDisconnected void
UpdateWindowsInput void
UpdateWindowsTouchInput void

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
LoadContent ( ) : void

Private Methods

Méthode Description
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

Method Details

Draw() public méthode

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

DrawButton() public méthode

public DrawButton ( VirtualGamePadButtonSkin buttonSkin, TouchMap touchMap, float value, float elapsedTime ) : void
buttonSkin VirtualGamePadButtonSkin
touchMap TouchMap
value float
elapsedTime float
Résultat void

GetPlayerInput() public méthode

public GetPlayerInput ( PlayerIndex playerIndex ) : PlayerInput
playerIndex PlayerIndex
Résultat PlayerInput

InputManager() public méthode

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
Résultat System

LoadContent() protected méthode

protected LoadContent ( ) : void
Résultat void

Update() public méthode

Updates the object and its contained resources.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

Property Details

Player1 protected_oe property

protected PlayerInput,Indiefreaks.Xna.Input Player1
Résultat PlayerInput

Player2 protected_oe property

protected PlayerInput,Indiefreaks.Xna.Input Player2
Résultat PlayerInput

Player3 protected_oe property

protected PlayerInput,Indiefreaks.Xna.Input Player3
Résultat PlayerInput

Player4 protected_oe property

protected PlayerInput,Indiefreaks.Xna.Input Player4
Résultat PlayerInput