Alex Perry writes: > >> What I don't like is the fact that, when changing pointers, the view >> stays fixed to the last position. I'm realy lost at where I'm looking at >> and where I should expect the front of the plane. >> I would suggest that the view direction would be reset to straight ahead >> when switching modes. > >Now I think about it, I agree, but I suspect this is a consequence of the >approach. Is there a way, within this approach, to save and restore the >cursor position between modes ? That would make it much >easier to use the >mouse for _both_ controls _and_ view direction in rapid alternation.
The old Mouse code < however I think the tilt stuff broke this > maintained state for each of the Mouse Modes. This was IMHO necessary for the MOUSE_YOKE mode and very useful for the other modes. Some of this was compile time configurable, FWIW this was fairly tricky to get right at first but is fairly straight forward once you figure out what you need. ie when cycling into YOKE Mode you want the cursor to reflect current state of the stick !! It was also quite convenient when in VIEW mode to be able switch between offset view and straight ahead with a left click I think that most of this can be programmed into the newer system if wanted by adding saved_x, saved_y mouse position in each of the modes. ie give each mode state as to cursor location. Then on entering mode you assume the mode's x and y and when exiting a mode you stash your location. I think that this will work, but will undoutably need a little tweaking to reflect a window reshape event. Norman _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
