If its not a calibration issue with a connected analogue pad causing it, maybe something went wrong with your user profile. Rename your My Documents/GTA San Andreas User Files/gta_sa.set file with .old extension and the game should create a new one the next time you start it. You will lose all configuration settings though. No idea if it will work but I guess its worth a try?
May the NFOrce be with you always.