First you have to set up the controller on it's own, drivers, settings etc up to date. Then you do the ffxiconfig file, manually set all your buttons in the menu. Then test it in the menu, confirm what does/doesn't work.

Then when you log in, one of two things will happen. It will work properly; or do the cycle thing (minimize the screen to the toolbar and reopen to fix this)