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); }
public MouseDeviceProvider(InputConfigManager inputConfigManager, MouseHook hook) { this.hook = hook; this.inputConfigManager = inputConfigManager; }