Beispiel #1
0
 public MouseDevice(InputConfigManager inputConfigManager, MouseHook hook)
 {
     this.inputConfigManager = inputConfigManager;
     this.hook             = hook;
     UniqueId              = MouseDeviceProvider.DeviceId;
     DisplayName           = MouseDeviceProvider.DeviceId;
     sources               = Enum.GetValues(typeof(MouseButton)).OfType <MouseButton>().Select((b) => new MouseSource(this, b.ToString(), (int)b)).ToArray();
     targets               = new ForceFeedbackTarget[0];
     inputChangedEventArgs = new DeviceInputChangedEventArgs(this);
 }
Beispiel #2
0
 public MouseDeviceProvider(InputConfigManager inputConfigManager, MouseHook hook)
 {
     this.hook = hook;
     this.inputConfigManager = inputConfigManager;
 }