Here is a Steam forum post about remapping the controller for FFXIII, originally posted here. I’ve changed it a little bit to suit ToS.
[quote=Drazz]When to use this?
-if your gamepad buttons have wrong functions (eg. Y works as A)
-if your gamepad doesnt work with the game at all
-if your axes are inverted or work funny
-so you dont have to map stick to WSAD and lose precision
Step 1: Install vJoy
vJoy is a virtual gamepad emulator, it creates new virtual gamepad device, which we will use to play the game. I. Download vJoy from: http://vjoystick.sourceforge.net/site/index.php/download-a-install/72-download II. Install it - just run the .exe file and go through the wizard, clicking next and finish, that's all.Step 2: Create virtual gamepad
I. Run "Configure vJoy", you can find it from windows start menu. II. Tick all the boxes in Axes, you won't need all those axes, but it doesn't hurt to have them. III. Select Continout POV hat Switch (if you have 8directional D-pad on your gamepad) and set the number of POVs to 1. IV. Select number of Buttons to 10 or more (i did 12, becouse my gampead has 12 buttons, but you only need 10 for all FFXIII functions) V. Select Target Device other than 1!!! Target 1 doesn't work for some reason, 15 worked for me. VI. Click OK. Now your virtual gamepad is created. This should also solve the stuttering issue if you dont have a gamepad.Step 3: Map your virtual gamepad to the real one with UJR
I. Download UJR from: http://evilc.com/joomla/articles/9-code/autohotkey/1-ujr-universal-joystick-remapper II. Extract it and run ujr.exe III. Go to axes 1 tab. Select vJoy Stick ID to 15 or whatever target device you chose in vJoy. III. Map the virtual axes to the physical axes on your gamepad. My physical Stick ID was 2 but yours may be different (moving the stick should move the slider). The virtual axes (X) a and (Y) control your character in game and (Z) and (RZ) control the camera, you dont have to map the others. IV. Go to buttons 1 tab and map the buttons. These are the in-game fuctions of the buttons: Virt Btn : in-game button 2 : A (or bottom button) 3 : B (or right button) 1 : X (or left button) 4 : Y (or top button) 5 : L1 6 : R1 7 : L2 8 : R2 9 : select (or <) 10 : start (or >) 11 : left stick push 12 : right stick pushV. Go to Hats tab and select the physical stick ID (probably 2).
Done! Now you are all set.
Step 4: Running the game
I. Unplug your gamepad (so the game starts using the virtual one and not the real one) II. Run the game. III. Plug the gamepad back in. IV. Run UJR (needs to be running while playing) V. Play!I tried this on windows 8.1 64bit with speedlink strike FX gampead and it worked perfectly. [/quote]
And I tried this on Windows 7 64 bit with an ipega PG-9025