Return-To-The-Roots / s25client

Return To The Roots (Settlers II(R) Clone)
http://www.rttr.info
GNU General Public License v2.0
478 stars 77 forks source link

[Feature] Use screen scrolling #138

Open Spikeone opened 9 years ago

Spikeone commented 9 years ago

Ich spiele auf einem Macbook, das hat nur eine Maustaste am Touchpad. Daher ist bewegen auf der Karte nur mit den Pfeiltasten möglich.

Wäre es möglich auch die Scrollevents (Oben, Unten, Links, Rechts) zum bewegen der Karte zu verwenden? Das würde insbesondere auf Notebooks die Zwei-Finger-Scrollen unterstützen das spielen erheblich verbessern.

Till (steinbach-till) wrote on 2010-04-19: Habe grade gefunden das die libsdl ab version 1.3 neben SDL_BUTTON_WHEELDOWN und SDL_BUTTON_WHEELUP wohl auch SDL_BUTTON_WHEELLEFT und SDL_BUTTON_WHEELRIGHT liefert.

Vielleicht schaue ich mir den Code mal an und gucke ob diese Erweiterung meine erste Siedler2.5 Contribution wird ;) Die Komplexität dürfte wohl überschaubar sein.

https://bugs.launchpad.net/s25rttr/+bug/564557

Flamefire commented 8 years ago

This is currently not possible. There is only SDL 1.2.15 and SDL 2.0. 1.2 does not have horizontal scrolling and 2.0 requires many changes in the code. -> Postboned

Flamefire commented 7 years ago

Note: scrolling means usually zoom. So I think that would be bad too use them for moving So I'm against this change

Spikeone commented 7 years ago

I don't think he means zoom but map view scrolling. As he has no right click, he can not move the map view. Like in a lot of other games he could move the cursor to the one screen border to scroll that direction. I'd not use it but for mac it seems quite reasonable.

Flamefire commented 7 years ago

Understood that. But he wanted to use scrolling for moving which is counterintuitive. The screen border movement sounds like a good idea. Maybe optional? I'd say not but it is a change from the original

Spikeone commented 7 years ago

Ah, now I get it, sorry, agreed thats not intuitive. But screen border movement (which shouldd be an option, so anyone can turn it on and off, should be on by default on mac then?) still sounds good for me, also if not really needed, is it (only good for touchpads, isn't it?).

Flamefire commented 7 years ago

Alright, then border scrolling it is.

Spikeone commented 4 years ago

Please add this only as an option one can enable / disable :)