예제 #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));
 }