refactored SDL joystick into seperate file