Skip to content

TSdlMouseMotionEvent

Mouse motion event structure (Event.MouseMotion.* )

Definition

Unit: Neslib.Sdl3.Events

type TSdlMouseMotionEvent = record ... end;

Properties

Name Description
Buttons The currently pressed buttons
Kind Event kind (TSdlEventKind.MouseMotion)
Mouse The mouse instance in relative mode, TSdlMouse.Touch for touch events, or nil
Position Position, relative to window
Rel The relative motion
Timestamp In nanoseconds, populated using SdlGetTicksNS
Window The window with mouse focus, if any
WindowID The ID of the window with mouse focus, if any
X X coordinate, relative to window
XRel The relative motion in the X direction
Y Y coordinate, relative to window
YRel The relative motion in the Y direction

Property Descriptions

Buttons

The currently pressed buttons

property Buttons: TSdlMouseButtons read GetButtons

Type: TSdlMouseButtons


Kind

Event kind (TSdlEventKind.MouseMotion)

property Kind: TSdlEventKind read GetKind

Type: TSdlEventKind


Mouse

The mouse instance in relative mode, TSdlMouse.Touch for touch events, or nil

property Mouse: TSdlMouse read GetMouse

Type: TSdlMouse


Position

Position, relative to window

property Position: TSdlPointF read GetPosition

Type: TSdlPointF


Rel

The relative motion

property Rel: TSdlPointF read GetRel

Type: TSdlPointF


Timestamp

In nanoseconds, populated using SdlGetTicksNS

property Timestamp: UInt64 read FHandle.timestamp

Type: UInt64


Window

The window with mouse focus, if any

property Window: TSdlWindow read GetWindow

Type: TSdlWindow


WindowID

The ID of the window with mouse focus, if any

property WindowID: TSdlWindowID read FHandle.windowID

Type: TSdlWindowID


X

X coordinate, relative to window

property X: Single read FHandle.x

Type: Single


XRel

The relative motion in the X direction

property XRel: Single read FHandle.xrel

Type: Single


Y

Y coordinate, relative to window

property Y: Single read FHandle.y

Type: Single


YRel

The relative motion in the Y direction

property YRel: Single read FHandle.yrel

Type: Single