Re: Does exist a method to....

Steve Lamont (spl@szechuan.ucsd.edu)
Fri, 29 Nov 96 13:10:49 PST

To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> I would know if someone can answer to a simple question.

My specialty. :-)

> Does exist a method (a function of xform or xlib call) that enables the
> mouse pointer to move only on a grid, namely a two-dimensional integer
> coordinate space ?

Well, since the space within which the pointer moves is a discrete
grid of pixels, I guess this happens by default.

Do you mean, perhaps, constraining the pointer to move only in x with
y fixed (or y with x fixed)? There's no intrinsic method to do this,
at least of which I'm aware. You could simulate it by doing an
XWarpPointer() in the event callback, I suppose, though I expect that
the result might not be terribly aesthetically pleasing -- the cursor
would tend to jitter, I'd expect.

Perhaps if you gave more detail on what you wish to do, someone could
give a better answer.

spl
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html