Example #1
0
 public RawDragEvent(IDragDropDevice inputDevice, RawDragEventType type,
                     IInputRoot root, Point location, IDataObject data, DragDropEffects effects, RawInputModifiers modifiers)
     : base(inputDevice, 0, root)
 {
     Type         = type;
     Location     = location;
     Data         = data;
     Effects      = effects;
     Modifiers    = (InputModifiers)modifiers;
     KeyModifiers = KeyModifiersUtils.ConvertToKey(modifiers);
 }
        public RawDragEvent(IDragDropDevice inputDevice, RawDragEventType type,
                            IInputRoot root, Point location, IDataObject data, DragDropEffects effects, RawInputModifiers modifiers)
            : base(inputDevice, 0, root)
        {
            Type         = type;
            Location     = location;
            Data         = data;
            Effects      = effects;
            KeyModifiers = KeyModifiersUtils.ConvertToKey(modifiers);
#pragma warning disable CS0618 // Type or member is obsolete
            Modifiers = (InputModifiers)modifiers;
#pragma warning restore CS0618 // Type or member is obsolete
        }