1
0
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:
Meehoi
2022-11-05 14:20:53 +07:00
committed by GitHub
parent 7f085e2752
commit d1baf094af
2 changed files with 6 additions and 2 deletions

View File

@@ -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.

View File

@@ -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;
}