TouchFingerEvent.fromSdlEvent constructor
TouchFingerEvent.fromSdlEvent(
- Sdl sdl,
- SDL_TouchFingerEvent event
Create an instance from an SDL event.
Implementation
factory TouchFingerEvent.fromSdlEvent(
final Sdl sdl,
final SDL_TouchFingerEvent event,
) =>
TouchFingerEvent(
sdl,
event.timestamp,
event.type.toTouchEventType(),
event.touchId,
event.fingerId,
event.x,
event.y,
event.dx,
event.dy,
event.pressure,
event.windowID,
);