[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Incorrect offset for mouse data
From: |
Marco Gerards |
Subject: |
Re: Incorrect offset for mouse data |
Date: |
Mon, 29 Mar 2004 04:19:29 +0200 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de> writes:
> Sure. Note that this is probably an off-by-one error that depends on
> how you define how you enumerate the rows/columns or so. I might have
> made a honest mistake or just counted differently. It doesn't matter
> much either way, as long as we interpret it consistently. That said,
> 0x20 is a "rounder" value and is probably what everybody else uses (or
> should use). So, put it in, please.
The problem is that the top left position of the mouse is 1,1.
however your calculation is assuming 0,0 for the top left. This is
fine, how ever this also messes up the buttons. In this case -1 would
be the first button. :)
I'll apply this tomorrow.
Thanks,
Marco