Event.fromSDL

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

class Event
static @trusted
fromSDL
(
SDL_Event sdlEvent
)

Parameters

sdlEvent SDL_Event

vanilla SDL_Event from bindbc-sdl

Return Value

Type: Event

dsdl2.Event of the same attributes

Meta