Ejemplo n.º 1
0
        public EventMouseMove(IntPtr EventInfo)
        {
            EventMouseMove e = new EventMouseMove();

            e             = (EventMouseMove)Marshal.PtrToStructure(EventInfo, typeof(EventMouseMove));
            buttons       = e.buttons;
            cur.output.x  = e.cur.output.x;
            cur.output.y  = e.cur.output.y;
            cur.canvas.x  = e.cur.canvas.x;
            cur.canvas.y  = e.cur.canvas.y;
            prev.output.x = e.prev.output.x;
            prev.output.y = e.prev.output.y;
            prev.canvas.x = e.prev.canvas.x;
            prev.canvas.y = e.prev.canvas.y;
            data          = e.data;
            locks         = e.locks;
        }
Ejemplo n.º 2
0
	   public EventMouseMove(IntPtr EventInfo)
	   {
		   EventMouseMove e = new EventMouseMove();
		   e = (EventMouseMove)Marshal.PtrToStructure(EventInfo, typeof(EventMouseMove));
		   buttons = e.buttons;
		   cur.output.x = e.cur.output.x;
		   cur.output.y = e.cur.output.y;
		   cur.canvas.x = e.cur.canvas.x;
		   cur.canvas.y = e.cur.canvas.y;
		   prev.output.x = e.prev.output.x;
		   prev.output.y = e.prev.output.y;
		   prev.canvas.x = e.prev.canvas.x;
		   prev.canvas.y = e.prev.canvas.y;
		   data = e.data;
		   locks = e.locks;
	   }