Thanks to David Gow (sulix) for this patch.
I was aware of the limitation, but decided to wait until someone complained before fixing it (I also overestimated the effort required to fix it).
So I'd like to congratulate David for being the first person to actually try and use the manager program!
I'll have to allocate a prize for that.
{
int xDist = x[1] - x[0];
int yDist = y[1] - y[0];
+ int magnitude = max(abs(xDist), abs(yDist));
if (abs(xDist) > abs(yDist))
{
if (xDist < 0)
buffer += "UP";
else
buffer += "DOWN";
+
+ if (magnitude > 1)
+ {
+ stringstream s("");
+ s << " " << magnitude;
+ buffer += s.str();
+ }
}
mouseClick++;
break;