Add refresh method and SDL event delegate