I'm not familiar with Visual Pinball, but if Future Pinball (same author) is any indication, it isn't made to work with a gamepad.
You'll have to install a keystroke emulator like Joy2Key or Xpadder. (google it)
It will allow you to map the gamepad keys to keyboard keys.