(joypad/connect) Change 'index' local variables