Take a look at the SDL documentation. See the SDL site..