1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-01 19:25:12 +01:00

Replace cursor position globals with gCursorState

This commit is contained in:
Ted John
2016-09-05 22:37:57 +01:00
parent 1c9164d3d3
commit 1e65c7e940
6 changed files with 13 additions and 19 deletions

View File

@@ -326,9 +326,6 @@ void platform_process_messages()
}
break;
case SDL_MOUSEMOTION:
RCT2_GLOBAL(0x0142406C, int) = (int)(e.motion.x / gConfigGeneral.window_scale);
RCT2_GLOBAL(0x01424070, int) = (int)(e.motion.y / gConfigGeneral.window_scale);
gCursorState.x = (int)(e.motion.x / gConfigGeneral.window_scale);
gCursorState.y = (int)(e.motion.y / gConfigGeneral.window_scale);
break;
@@ -384,9 +381,6 @@ void platform_process_messages()
// Apple sends touchscreen events for trackpads, so ignore these events on macOS
#ifndef __MACOSX__
case SDL_FINGERMOTION:
RCT2_GLOBAL(0x0142406C, int) = (int)(e.tfinger.x * gScreenWidth);
RCT2_GLOBAL(0x01424070, int) = (int)(e.tfinger.y * gScreenHeight);
gCursorState.x = (int)(e.tfinger.x * gScreenWidth);
gCursorState.y = (int)(e.tfinger.y * gScreenHeight);
break;