예제 #1
0
 public static IInputContext GetInput(this IWindow window)
 {
     return(SilkManager.GetOrDefault <IInputPlatform>()?.GetInput(window)
            ?? throw new NotSupportedException("Couldn't find a suitable input platform for this window."));
 }
예제 #2
0
 public static IInputContext CreateInput(this IView view)
 {
     return(SilkManager.GetOrDefault <IInputPlatform>()?.CreateInput(view)
            ?? throw new NotSupportedException("Couldn't find a suitable input platform for this view."));
 }