By default, PSOBB recognizes only the first controller returned by Direct Input, and the device must be connected before the game starts.
In the launcher's options, you can enable the AUTO DETECT ACTIVE GAMEPAD option to check all available devices that the game recognizes.
So just make sure the controller is connected before launching the game, and with that option, it will likely just work.