Adding function to detect joystick names on Win/Mac/Linux.
Avoid segfault when SDL_JoystickNameForIndex returns null (no joystick for that id.)
Merge pull request #39 from bendmorris/gamepad

Adding function to detect joystick names on Win/Mac/Linux.