コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InputManager"/> class.
 /// </summary>
 /// <param name="parentGame">The parent game.</param>
 public InputManager(BaseGame parentGame)
     : base(parentGame)
 {
     this.inputState            = new InputState();
     this.globalInputBindingSet = new InputBindingSet();
     this.childInputBindingSets = new ThrottledCollection <List <InputBindingSet>, InputBindingSet>(new List <InputBindingSet>());
     this.childInputBindingSets.Add(globalInputBindingSet);
 }
コード例 #2
0
 /// <summary>
 /// Removes a set of input bindings from the input manager.
 /// </summary>
 /// <param name="inputBindingSet">The set of input bindings to remove from the manager.</param>
 public void RemoveInputBindingSet(InputBindingSet inputBindingSet)
 {
     this.childInputBindingSets.Remove(inputBindingSet);
 }
コード例 #3
0
 /// <summary>
 /// Adds a set of input bindings to the input manager.
 /// </summary>
 /// <param name="inputBindingSet">The set of input bindings to add to the manager.</param>
 public void AddInputBindingSet(InputBindingSet inputBindingSet)
 {
     this.childInputBindingSets.Add(inputBindingSet);
 }