If you want to learn the SDL, you should read this very good tutorial. I wish I'd found it when I was starting the SDL. :)
Lazy Foo' Productions
The SDL has support for (multiple?) joysticks, the keyboard, and the mouse. (Apparently multiple mice if you want to try the testing version of SDL.)