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() ~ FloatReturn
| Type | Description |
|---|---|
| Float | x delta in the range -1.0 to 1.0 |
GetDY #
Normalized distance moved along y
method : public : GetDY() ~ FloatReturn
| Type | Description |
|---|---|
| Float | y delta in the range -1.0 to 1.0 |
GetPressure #
Normalized pressure
method : public : GetPressure() ~ FloatReturn
| Type | Description |
|---|---|
| Float | pressure in the range 0.0 to 1.0 |
GetTimestamp #
Timestamp of the event
method : public : GetTimestamp() ~ IntReturn
| Type | Description |
|---|---|
| Int | event timestamp |
GetTouchId #
The touch device id
method : public : GetTouchId() ~ IntReturn
| Type | Description |
|---|---|
| Int | touch device id |
GetType #
Event type
method : public : GetType() ~ IntReturn
| Type | Description |
|---|---|
| Int | EventType->SDL_FINGERDOWN, SDL_FINGERUP or SDL_FINGERMOTION |
GetWindowID #
The window underneath the finger, if any
method : public : GetWindowID() ~ IntReturn
| Type | Description |
|---|---|
| Int | window ID |