Norman Vine writes:
> > if (mode.constrained) {
> > bool need_warp = false;
> > if (x <= 0) {
> > x = xsize - 2;
> > need_warp = true;
> > } else if (x >= (xsize-1)) {
> > x = 0;
>
> !!!! should be x = 1;
Oops -- I missed this one. It looks like I guessed Norm's intentions
wrong.
What does everyone else prefer -- should the mouse get stuck on the
window edges in constrained mode, or should it wrap around? I have no
strong preference either way. There are good arguments in favour of
both: with wrap-around, you still see cursor movement while you're
moving the mouse, so you get good relative feedback, and the same
amount of movement will bring it back to the center again; with the
cursor stuck at the edges, you're less likely to loose track of it.
All the best,
David
--
David Megginson
[EMAIL PROTECTED]
_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel