public KeyboardState( SDL.SDL_Keymod modifier, SDL.SDL_Scancode key, bool repeat, KeyState state, uint timestamp, SDL.SDL_EventType type) { Modifier = modifier; Key = key; Repeat = repeat; State = state; Timestamp = timestamp; Type = type; }
public IReadOnlyList <SDL.SDL_Event> GetEvents(SDL.SDL_EventType type) { return(Events.Where(e => e.type == type).ToList()); }