🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #185

how to get mouse resolution?

#185
From: abirbasak
Date: Fri, 25 Aug 2006 08:04
20 lines
2121 bytes
Hi,
  Usually mouse resolution is higher than screen resolution. How to get
mouse resolution from Java? How to move mouse to a different screen
location using mouse resolution?
Also it seems, mouseMove event is generated only when mouse moves on
screen (may be a few pixels). How to get a mouseMove when mouse is
moved, but pointer in screen is not mived (as screen resolution is less
than mouse resolution, mostly 72dpi)?
  I am trying to have a scribble application, where user draws
something with mouse in the panel. But, as mouseMove is mapping mouse
into screen coordinate (may be a with a few pixel quantization also) I
am loosing some minute detail in the coordinate value, which might be
present in the drawing. Later I want to get the exact image at the
subpixel level without loosing detail, while zooming.
 So basically, I want to capture mouse movement, and mouse position wrt
some reference at mouse resolution, rather than screen resolution.
   Any possible solution? 

 Any help is appreciated.
abir
Technical Details
Message-ID: <1156493040.078754.267740@h48g2000cwc.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!h48g2000cwc.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,40727ac246a118b7,start
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!h48g2000cwc.googlegroups.com!not-for-mail
From: abirbasak@gmail.com
Newsgroups: borland.public.jbuilder.java.swing
Subject: how to get mouse resolution?
Date: 25 Aug 2006 01:04:00 -0700
Organization: http://groups.google.com
Lines: 21
Message-ID: <1156493040.078754.267740@h48g2000cwc.googlegroups.com>
NNTP-Posting-Host: 59.144.47.70
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1156493045 24577 127.0.0.1 (25 Aug 2006 08:04:05 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 25 Aug 2006 08:04:05 +0000 (UTC)
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: h48g2000cwc.googlegroups.com; posting-host=59.144.47.70;
   posting-account=__mTyQ0AAADDIoFM_RQjkH2xuy0dkofa