C# Class WarTornLands.Infrastructure.InputManager

Inheritance: Microsoft.Xna.Framework.GameComponent
显示文件 Open project: floAr/WarTornLands

Public Methods

Method Description
SetMapping ( Microsoft key, InputKey inputKey ) : bool
Subscribe ( Key key, EventHandler &handler ) : void
Unsubscribe ( Key key, EventHandler &handler ) : void
Update ( GameTime gt ) : void
this ( String keyName ) : InputKey

Private Methods

Method Description
InputManager ( Microsoft.Xna.Framework.Game game ) : System
RegisterControlSheet ( ControlSheet _inputSheet ) : void

Method Details

SetMapping() public method

public SetMapping ( Microsoft key, InputKey inputKey ) : bool
key Microsoft
inputKey WarTornLands.Infrastructure.Systems.InputSystem.InputKey
return bool

Subscribe() public method

public Subscribe ( Key key, EventHandler &handler ) : void
key WarTornLands.Infrastructure.Systems.InputSystem.Key
handler EventHandler
return void

Unsubscribe() public method

public Unsubscribe ( Key key, EventHandler &handler ) : void
key WarTornLands.Infrastructure.Systems.InputSystem.Key
handler EventHandler
return void

Update() public method

public Update ( GameTime gt ) : void
gt Microsoft.Xna.Framework.GameTime
return void

this() public method

public this ( String keyName ) : InputKey
keyName String
return WarTornLands.Infrastructure.Systems.InputSystem.InputKey