The International Simutrans Forum

 

Author Topic: screen moving  (Read 1659 times)

0 Members and 1 Guest are viewing this topic.

Offline pletiplot

  • *
  • Posts: 31
screen moving
« 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.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5523
  • Languages: EN, NO
Re: screen moving
« Reply #1 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.)

Offline Markohs

  • DevTeam, Coder/patcher
  • Devotees (Inactive)
  • *
  • Posts: 1559
  • Languages: EN,ES,CAT
Re: screen moving
« Reply #2 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?

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9507
  • Languages: De,EN,JP
Re: screen moving
« Reply #3 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.

Offline Markohs

  • DevTeam, Coder/patcher
  • Devotees (Inactive)
  • *
  • Posts: 1559
  • Languages: EN,ES,CAT
Re: screen moving
« Reply #4 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