Event structure on Window Events.
Types that can occur when WindowEvents are fired.
Function for converting a SDL event to a WindowEvent
Controller id in any Controller event.
Text contained in TextEntered event.
Type of this event.
Relative mouse coordinates in Mouse events.
SDL_Event source; WindowEvent event; source.type = SDL_KEYDOWN; source.key.keysym.sym = cast(SDL_Keycode) 42; event.fromSDL(source); assert(event.type == WindowEvent.Type.KeyPressed); assert(event.key == 42);
See Implementation
Event structure on Window Events.