added joystick event support and joystick support for prefs menu