Add support for Tiberian Sun style right-click-and-drag scrolling
This patch introduces support for the right-click-and-drag scrolling that is available in Tiberian Sun and Red Alert 2. It can be enabled by selecting "Joystick" scrolling in the Input settings. The speed of the scroll is proportional to the product of the distance of the drag, and the Scroll Speed selected in the Input settings menu. A side-effect of this is that events previously tied to right clicks on the world are now based on the release of the click rather than the press. The "Middle-Mouse Scrolling:" option is renamed to "Mouse Scrolling Method:"
This commit is contained in:
@@ -333,7 +333,7 @@ Container@SETTINGS_PANEL:
|
||||
Width: 160
|
||||
Height: 20
|
||||
Font: Regular
|
||||
Text: Middle-Mouse Scrolling:
|
||||
Text: Mouse Scrolling Method:
|
||||
Align: Right
|
||||
DropDownButton@MOUSE_SCROLL:
|
||||
X: PARENT_RIGHT - WIDTH - 15
|
||||
|
||||
Reference in New Issue
Block a user