v2026.11.2
All Bundles
Bundle

SDL2 multimedia library for 2D graphics, input handling, audio playback, and window management. Core types: Window, Renderer, Texture, Surface, Event, and Mixer. Compile with -lib sdl2.

TouchFingerEvent

Touch finger event

Operations

GetDX #

Normalized distance moved along x

method : public : GetDX() ~ Float

Return

TypeDescription
Floatx delta in the range -1.0 to 1.0

GetDY #

Normalized distance moved along y

method : public : GetDY() ~ Float

Return

TypeDescription
Floaty delta in the range -1.0 to 1.0

GetFingerId #

The finger id

method : public : GetFingerId() ~ Int

Return

TypeDescription
Intfinger id

GetPressure #

Normalized pressure

method : public : GetPressure() ~ Float

Return

TypeDescription
Floatpressure in the range 0.0 to 1.0

GetTimestamp #

Timestamp of the event

method : public : GetTimestamp() ~ Int

Return

TypeDescription
Intevent timestamp

GetTouchId #

The touch device id

method : public : GetTouchId() ~ Int

Return

TypeDescription
Inttouch device id

GetType #

Event type

method : public : GetType() ~ Int

Return

TypeDescription
IntEventType->SDL_FINGERDOWN, SDL_FINGERUP or SDL_FINGERMOTION

GetWindowID #

The window underneath the finger, if any

method : public : GetWindowID() ~ Int

Return

TypeDescription
Intwindow ID

GetX #

Normalized x position

method : public : GetX() ~ Float

Return

TypeDescription
Floatx in the range 0.0 to 1.0

GetY #

Normalized y position

method : public : GetY() ~ Float

Return

TypeDescription
Floaty in the range 0.0 to 1.0