Skip to content

Commit 0a7f2a0

Browse files
committed
Add missing fields to TSDL_MouseWheelEvent
SDL 3.2.12 added two more fields to this record: 'integer_x' and 'integer_y'.
1 parent 3ef2ae1 commit 0a7f2a0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

units/SDL_events.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,8 @@ type
443443
direction: TSDL_MouseWheelDirection; {*< 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 }
444444
mouse_x: cfloat; {*< X coordinate, relative to window }
445445
mouse_y: cfloat; {*< Y coordinate, relative to window }
446+
integer_x: cint32; {*< The amount scrolled horizontally, accumulated to whole scroll "ticks" (added in 3.2.12) *}
447+
integer_y: cint32; {*< The amount scrolled vertically, accumulated to whole scroll "ticks" (added in 3.2.12) *}
446448
end;
447449

448450
{*

0 commit comments

Comments
 (0)