FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 1568 : Mouse coordinates are in increments of two, rather than one
Last modified: 2010-05-30 09:16
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
INVALID -
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
Pomax
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2010-05-30 05:41
mouse events in Processing 1.0. and 1.1 are registered on a two pixel step basis,
rather than 1 pixel. The following code is enough to highlight the problem:
void setup() { size(400,400); }
void draw() { background(255); }
void mouseMoved() { println("mouse coordinates:"+mouseX+"/"+mouseY); }
Moving the mouse around will not show any mouse steps smaller than two in both
directions.
This bug may apply to other operating systems, but I've only been able to test it in
Windows Server 2008 (which uses the same kernel as Vista, and so should probably
be treated as a report on Vista).
Additional Comment
#1 From fry 2010-05-30 09:16
that's your OS. at least in earlier versions of windows, you had to change
a setting in the mouse control panel to say "increase pointer accuracy" or
something like that.