The International Simutrans Forum

Development => Extension Requests => Topic started by: pletiplot on November 17, 2013, 05:52:52 PM

Title: screen moving
Post by: pletiplot on November 17, 2013, 05:52:52 PM
Hi,
simutrans allows to move the screen two ways: regular - moving the view with mouse - and inverted - terain moves with the mouse. The inverted ways is more close to googlemaps way and is more intuitive and is more close to the modern touch-screen devices. But - after moving the terain the cursor jumps back to the original screen position, which destroys the relative association between cursor position and mouse "on-table position". Then I need to move mouse upon the table with no cursor move and it is very anoying. Can someone look at it?
Thanks.
Title: Re: screen moving
Post by: Ters on November 17, 2013, 08:02:50 PM
The resetting of the mouse position is to prevent the mouse from leaving the window and affecting other applications during a drag. Is this not a problem with inverted panning? (I don't know how to use the inverted way.)
Title: Re: screen moving
Post by: Markohs on November 18, 2013, 12:08:49 PM
I understand the problem, pletipot, but reseting the mouse position is necessary because if you don't do it it might end being outside the simutrans window. The current way of handling this is imho, better, because it allows you to drag infinitely, without the need to release, move and click again.

What you suggest whould just give use a google maps on a pad dragging, more annoying imho, but ofc a bit more "natural"

No?
Title: Re: screen moving
Post by: prissi on November 18, 2013, 12:23:18 PM
One could however reset the mouse only if moved with 50 pixel of the window/screen border.
Title: Re: screen moving
Post by: Markohs on November 18, 2013, 12:42:00 PM
That's a good idea, but strange.

Maybe someone should try it, test it and see how it feels. It's all just in siminteraction.cc, interaction_t::move_view