Go to File Explorer to find the Fallout 4 folder in your game files. Look for the Fallout4Prefs file and open it with Notepad. Search for "bGamepadEnable" and change the number next to it from 1 to 0.