Made some improvements to hid_joystick.py.