From 672814418c528cf5d70586c28d8ec25a03ee5a6e Mon Sep 17 00:00:00 2001 From: HUNGilby Date: Fri, 17 Mar 2023 15:24:07 +0100 Subject: [PATCH 1/2] Update sdlevents.inc Added mouse_x and mouse_y to TSDL_MouseWheelEvent --- units/sdlevents.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/units/sdlevents.inc b/units/sdlevents.inc index a150bf77..307a2504 100644 --- a/units/sdlevents.inc +++ b/units/sdlevents.inc @@ -285,6 +285,8 @@ type direction: cuint32; // Set to one of the SDL_MOUSEWHEEL_* defines. When FLIPPED the values in X and Y will be opposite. Multiply by -1 to change them back preciseX: cfloat; // The amount scrolled horizontally, positive to the right and negative to the left, with float precision (added in 2.0.18) preciseY: cfloat; // The amount scrolled vertically, positive away from the user and negative toward the user, with float precision (added in 2.0.18) + mouse_x: cint32; // X coordinate, relative to window (added in 2.26.0) + mouse_y: cint32; // Y coordinate, relative to window (added in 2.26.0) end; {** From 3204e880e8303ae1b1c45f67a48aa2f831689b77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szab=C3=B3=20Zsolt?= Date: Tue, 21 Mar 2023 19:58:57 +0100 Subject: [PATCH 2/2] Update sdlevents.inc Renaming mouse coordinate fields in TSDL_MouseWheelEvent to match the C sources. --- units/sdlevents.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/units/sdlevents.inc b/units/sdlevents.inc index 307a2504..5a968ec5 100644 --- a/units/sdlevents.inc +++ b/units/sdlevents.inc @@ -285,8 +285,8 @@ type direction: cuint32; // Set to one of the SDL_MOUSEWHEEL_* defines. When FLIPPED the values in X and Y will be opposite. Multiply by -1 to change them back preciseX: cfloat; // The amount scrolled horizontally, positive to the right and negative to the left, with float precision (added in 2.0.18) preciseY: cfloat; // The amount scrolled vertically, positive away from the user and negative toward the user, with float precision (added in 2.0.18) - mouse_x: cint32; // X coordinate, relative to window (added in 2.26.0) - mouse_y: cint32; // Y coordinate, relative to window (added in 2.26.0) + mouseX: cint32; // X coordinate, relative to window (added in 2.26.0) + mouseY: cint32; // Y coordinate, relative to window (added in 2.26.0) end; {**