added updateRegistry stuff for joysticks