Beispiel #1
0
 public static IEnumerable <IAction> GetAll(InputManager.GamePadStateContainer pad)
 {
     return(GamePadAction.GetAll(pad.Id));
 }
Beispiel #2
0
 public static IAction FromString(string value)
 {
     return(value.ToLowerInvariant().Trim() == "unbound"
         ? InputAction.Unbound
         : KeyboardKeyAction.FromString(value) ?? GamePadAction.FromString(value));
 }