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.")); }
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.")); }