Re: DlangUI MouseEvent mouse delta

2016-04-27 Thread Vadim Lopatin via Digitalmars-d-learn
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 informati

Re: DlangUI MouseEvent mouse delta

2016-04-26 Thread stunaep via Digitalmars-d-learn
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.

DlangUI MouseEvent mouse delta

2016-04-26 Thread stunaep via Digitalmars-d-learn
I am trying to know how much the mouse moves when clicking down on a certain widget, but I can't figure out how. I noticed only a mouse wheel delta property and nothing for the mouse pointer x,y deltas since the click. I am looking to do something such as if(e.lbutton().isDown() && !e.rbutton(