mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-27 16:54:52 +01:00
Show cursor when using inverted mouse dragging (#17998)
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
- Improved: [#18214] Competition scenarios have received their own section.
|
||||
- Improved: [#18250] Added modern style file and folder pickers on Windows.
|
||||
- Improved: [#18422] Allow adding images to music objects.
|
||||
- Change: [#17998] Show cursor when using inverted mouse dragging.
|
||||
- Change: [#18230] Make the large flat to steep pieces available on the corkscrew roller coaster without cheats.
|
||||
- Change: [#18381] Convert custom invisible paths to the built-in ones.
|
||||
- Fix: [#14312] Research ride type message incorrect.
|
||||
|
||||
@@ -526,7 +526,10 @@ static void InputViewportDragBegin(rct_window& w)
|
||||
_ticksSinceDragStart = 0;
|
||||
auto cursorPosition = context_get_cursor_position();
|
||||
gInputDragLast = cursorPosition;
|
||||
context_hide_cursor();
|
||||
if (!gConfigGeneral.InvertViewportDrag)
|
||||
{
|
||||
context_hide_cursor();
|
||||
}
|
||||
|
||||
window_unfollow_sprite(w);
|
||||
// gInputFlags |= INPUT_FLAG_5;
|
||||
@@ -581,7 +584,7 @@ static void InputViewportDragContinue()
|
||||
}
|
||||
}
|
||||
|
||||
if (cursorState->touch)
|
||||
if (cursorState->touch || gConfigGeneral.InvertViewportDrag)
|
||||
{
|
||||
gInputDragLast = newDragCoords;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user