public bool OldKeyUpEvent(object key) { if (!OldState.ContainsKey((SDL2.SDL.SDL_Keycode)key)) { return(true); } return(!OldState[(SDL2.SDL.SDL_Keycode)key]); }
public bool OldButtonUpEvent(object key) { if (!OldState.ContainsKey((uint)key)) { return(true); } return(!OldState[(uint)key]); }
public bool OldKeyDownEvent(object key) { if (!OldState.ContainsKey((SDL2.SDL.SDL_Keycode)key)) { return(false); } return(OldState[(SDL2.SDL.SDL_Keycode)key]); }
public bool OldButtonDownEvent(object key) { if (!OldState.ContainsKey((uint)key)) { return(false); } return(OldState[(uint)key]); }