Example #1
0
 public MuboxBridge(IServiceProvider serviceProvider)
 {
     _serviceProvider = serviceProvider;
     LoggingExtensions.ServiceProvider = serviceProvider; // gives Trace extensions indirect access to Console Extension
     Clients  = new List <IMuboxClient>();
     Keyboard = new Input.VirtualKeyboard(null);
     Mouse    = new Input.VirtualMouse(null);
 }
Example #2
0
 public MuboxBridge(IServiceProvider serviceProvider)
 {
     _serviceProvider = serviceProvider;
     LoggingExtensions.ServiceProvider = serviceProvider; // gives Trace extensions indirect access to Console Extension
     Clients = new List<IMuboxClient>();
     Keyboard = new Input.VirtualKeyboard(null);
     Mouse = new Input.VirtualMouse(null);
 }
Example #3
0
 public MuboxClientBridge(
     Action<WinAPI.VK> onDoKeyPress,
     Action<Input.MouseEventArgs> onDoMouseClick)
 {
     _doKeyPress = onDoKeyPress;
     _doMouseClick = onDoMouseClick;
     Keyboard = new Input.VirtualKeyboard(this);
     Mouse = new Input.VirtualMouse(this);
 }
Example #4
0
 public MuboxClientBridge(
     Action <WinAPI.VK> onDoKeyPress,
     Action <Input.MouseEventArgs> onDoMouseClick)
 {
     _doKeyPress   = onDoKeyPress;
     _doMouseClick = onDoMouseClick;
     Keyboard      = new Input.VirtualKeyboard(this);
     Mouse         = new Input.VirtualMouse(this);
 }