VMD-L Mailing List
From: John Stone (johns_at_ks.uiuc.edu)
Date: Thu Apr 27 2006 - 11:52:55 CDT
- Next message: Chang Hu: "Re: Problems with mouse programming in VMD"
- Previous message: John Stone: "Re: Secondary Structure along a trajectory"
- In reply to: Chang Hu: "Problems with mouse programming in VMD"
- Next in thread: Chang Hu: "Re: Problems with mouse programming in VMD"
- Reply: Chang Hu: "Re: Problems with mouse programming in VMD"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Hi,
VMD doesn't actually directly manipulate the mouse cursor position,
this is done completely by the host operating system. The farthest VMD
goes in that direction is to set the active mouse cursor style, among the
choices available on the host operating system. This is the reason you haven't
found any code of that sort in VMD. All of the important mouse behavior
code is contained in Mouse.C, with the lowest level mouse I/O calls found
in each of the DisplayDevice subclasses for OpenGL, Win32 OpenGL, FLTK,
CAVE, and FreeVR. I'm not even sure there's a means of altering the
mouse acceleration by application control in most windowing systems.
There may be a way to do this on some, but I'm sure you'll find that
to be a difficult thing to write portable code for, if it's even possible.
John Stone
vmd_at_ks.uiuc.edu
On Thu, Apr 27, 2006 at 12:19:57AM -0400, Chang Hu wrote:
> Hi,
>
> I am trying to implement enhanced picking in VMD. To do this, I am
> planning to decrease the mouse speed whenever it's near an atom,
> according to the distance between the mouse cursor and the atom. I
> looked into the Programmer's Guide and had no luck finding related
> source code. (I guess I need the part where the mouse cursor is
> rendered.) Could anybody help me out with this?
>
> Thanks,
> Chang
-- NIH Resource for Macromolecular Modeling and Bioinformatics Beckman Institute for Advanced Science and Technology University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801 Email: johns_at_ks.uiuc.edu Phone: 217-244-3349 WWW: http://www.ks.uiuc.edu/~johns/ Fax: 217-244-6078
- Next message: Chang Hu: "Re: Problems with mouse programming in VMD"
- Previous message: John Stone: "Re: Secondary Structure along a trajectory"
- In reply to: Chang Hu: "Problems with mouse programming in VMD"
- Next in thread: Chang Hu: "Re: Problems with mouse programming in VMD"
- Reply: Chang Hu: "Re: Problems with mouse programming in VMD"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]