Function Event.fromSDL

Turns a vanilla SDL_Event from bindbc-sdl to dsdl2.Event

static Event fromSDL (
  sdl.events.SDL_Event sdlEvent
) @trusted;

Parameters

NameDescription
sdlEvent vanilla SDL_Event from bindbc-sdl

Returns

dsdl2.Event of the same attributes