Example #1
0
        /// <summary>Adds a mouse event to the queue, with no movement in mouse location.  Data param only needed for wheel/XUP/XDOWN events</summary>
        public virtual void AddMouseEvent(Windows.MOUSEEVENTF eventType, int mouseData = 0)
        {
            Debug.Assert((eventType & Windows.MOUSEEVENTF.ABSOLUTE) == 0);             // should be relative (as we will supply coords = 0)
            var data = new Windows.tagINPUT(Windows.INPUTTYPE.MOUSE);

            data.union.mi.dwFlags = eventType;
            // coords left at 0,0 (relative)
            data.union.mi.mouseData = mouseData;
            // time stamp left at zero
            // likewise extra info
            m_Output.Add(data);
        }
Example #2
0
 public override void AddMouseEvent(Windows.MOUSEEVENTF eventType, int mouseData = 0)
 {
 }