Example #1
0
 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;
 }
Example #2
0
 public IReadOnlyList <SDL.SDL_Event> GetEvents(SDL.SDL_EventType type)
 {
     return(Events.Where(e => e.type == type).ToList());
 }