I'm assuming that you're using a USB controller, and that you're using Windows XP. If not, please give us more details on your system configuration.
Some people have successfully gotten USB controllers to work with FF7 in Windows XP. Go to the Game Controllers control panel, hit the "Advanced" button, and make sure the preferred device is set to the device that you want to use with FF7.
Maybe someone else knows more.