DlangUI MouseEvent mouse delta

Vadim Lopatin via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Apr 27 01:26:43 PDT 2016


On Wednesday, 27 April 2016 at 00:15:46 UTC, stunaep wrote:
> I am currently handling it like this:
>
>>current = e.pos();
>>xdelta = current.x - previous.x;
>>ydelta = current.y - previous.y;
>>previous = current;
> I'm just wondering if there is a built in solution that I 
> missed.

There is only information about coordinates where mouse button 
down event occured.

event.lbutton.downX, event.lbutton.downY - stores coordinates of 
button down event.



More information about the Digitalmars-d-learn mailing list