Still need to write new code using SDL2 for joystick support. Edit: converted the ancient joystick code to SDL2, would be better if everything was handled in the event loop.