示例#1
0
 public static IEnumerable <IAction> GetAllAvailable()
 {
     return(KeyboardKeyAction.GetAll().Concat(InputManager.GamePads.SelectMany(GamePadAction.GetAll)));
 }
示例#2
0
 public static IAction FromString(string value)
 {
     return(value.ToLowerInvariant().Trim() == "unbound"
         ? InputAction.Unbound
         : KeyboardKeyAction.FromString(value) ?? GamePadAction.FromString(value));
 }