Пример #1
0
        public MouseDevice()
        {
            _mouse = new MouseHook();

            _left = new ButtonDeviceComponent(this) { Name = "Left", State = ButtonState.Up };
            _right = new ButtonDeviceComponent(this) { Name = "Right", State = ButtonState.Up };
            _middle = new ButtonDeviceComponent(this) { Name = "Middle", State = ButtonState.Up };

            _wheel = new DeltaDeviceComponent(this) { Name = "Wheel" };

            _cursor = new PositionalDeviceComponent(this) { Name = "Cursor" };
        }
 public void Initialize(DeviceComponent model)
 {
     _model = model as DeltaDeviceComponent;
     chkDelta.Text = model.Name;
 }