Oh, sorry, I had to tell you that I am using SDL2 for this task.