예제 #1
0
        public IProcessingPluginChain AddInputDevicePlugin(IInputDevicePlugin plugin, IInputDevicePluginContext startingContext)
        {
            var inputDevices = InputDevices.ToList();

            inputDevices.Add(new InputDevice(plugin, startingContext));
            InputDevices = inputDevices;

            return(this);
        }
예제 #2
0
 internal InputDevice(IInputDevicePlugin plugin, IInputDevicePluginContext context)
 {
     Plugin  = plugin;
     Context = context;
 }
예제 #3
0
 public static IInputDevicePluginContext GenerateInitialInputDevicePluginContext(IInputDevicePlugin inputDevicePlugin)
 {
     return(new InputDevicePluginContext(inputDevicePlugin.Configure()));
 }