Prince of Persia: The Two Thrones

Prince of Persia: The Two Thrones

Dexy Apr 12, 2015 @ 8:47pm
Can't Map The Trigger Buttons on Xbox 360 Controller?
This is really annoying! If you select default it even shows that the triggers can be mapped that way, but you can't do it manually?

I'm currently going through the SoT trilogy and I've found it best to have wall running / blocking on the right trigger and the rewind + other time abilities on the left with no need to use the bumper buttons.

Is there any way I can map the triggers as I so please?
Last edited by Dexy; Apr 12, 2015 @ 8:47pm
< >
Showing 1-4 of 4 comments
BurningDogFace Dec 17, 2016 @ 3:40pm 
It's very disheartening to see that no one ever responded to this message, because I'm having the exact same problem right now. I guess I'll ask Google. :P
Azhuul Zharr Feb 26, 2018 @ 2:08am 
I'm bumping this because I have the exact problem and it's driving me insane! I also use the triggers for walling/blocking and time actions and I can't map them! I try to enter them and it just scrolls up the menu and doesn't recognise the input! Been Googling this and can't find answers, I hope someone can help!
Last edited by Azhuul Zharr; Feb 26, 2018 @ 2:11am
MishiSings Aug 1, 2020 @ 11:33am 
Did anyone ever find a solution to this? I'm having the exact same issue!
Chariblaze Sep 11, 2020 @ 3:18am 
This game must be one of the first to have XInput. It's neat it's there, but yeah it's kind of busted. The triggers work in-game, but when you try to remap them they just go up and right in the menu. I also found that the stick buttons (LS/RS) don't work at all, so "Press Right Stick to center camera" gets weird.

Maybe a proper mod could fix things, but otherwise third-party software works ok:




Remapping triggers: XInput Plus[sites.google.com]

Extract and run XInputPlus.exe. Under "Target Program", click Select and select the game executable. For this game it's PrinceOfPersia.exe in the "Prince of Persia The Two Thrones" game directory (default location: C:\Program Files (x86)\Steam\steamapps\common).

KeyAssign tab: The left columns are the buttons presented to the game, and the right columns with the dropdowns let you select alternative buttons on your controller. So for example you could swap the bumpers and triggers by setting LB/RB to Left Trigger/Right Trigger and vice versa. Or you could swap around the face buttons to match a Nintendo layout, whatever. You can preview the results with the "Total Test" button in the lower-left.

Sticks tab: Here you can change analog stick deadzones and saturation. I'd recommend setting them while you're here. Old games like this don't seem to have built-in deadzones, so the slightest wobble of a stick will cause a character to move - stick drift, input when you're not touching it. Or in some games if the stick can't get all the way to 100%, a character won't run (Bully).

The tab shows the live data of your selected stick's input, very helpful to visualize and dial things in. "Wobble" the stick - move it around slightly, without actually tilting it. Turn up the Dead Zone percentage in notches until the wobbling doesn't create any Output percentage. | For Saturation, move the stick all the way up, down, left, right. If needed, move the Saturation slider down until you can get 100%/-100% Output percentages for all four directions. In a game you probably won't be hitting the cardinal directions exactly, so if you still have issues come back and knock down Saturation another notch. | For my old 360 controller I use 25% dead zone/90% saturation on left stick, 20% dead zone/95% saturation on right stick.

Setting tab (essential): In the Dll Files sub-tab, tick XInput9_1_0.dll. This is the XInput version needed for The Two Thrones. | I also like to go to the Others tab and tick "Enable Init Beep", so I know that XInput Plus is working when I start the game.

Click "Apply" when done! You can close the XInput Plus app now, you don't need to have it running while playing the game. The app is just used to apply your settings to the INI and add the files to the game directory. Your controller will work normally in other games, this is all localized in the game directory. To reconfigure your settings, open XInput Plus, select the game exe again, and the app will offer to load your previous INI.




Stick buttons (LS/RS): JoyToKey[joytokey.net]

LS/RS don't work in the game at all. Remapping in XInput Plus doesn't help, which makes sense, A or whatever mapped to RS is still sending RS, and the game is ignoring it. XInputPlus has a DirectInput mode that would maybe let you bypass XInput, but I couldn't get it working properly with this game, and you would get prompts like "Press Button 2 to jump".

But -- In the game's "Controls - Gamepad" remapping screen, you can still map keyboard buttons to functions, which we can exploit with JoyToKey. Run JoyToKey.exe. Hold the stick button to highlight what Button in the app it corresponds to. For me RS is Button 10. Double-click the Button, and assign a key (I used M). You can test that the mapping works in Notepad or whatever. Now when I press RS in the game's remapping screen, it shows [M], and it works. JoyToKey needs to be open to be active, it's a system-wide temporary tweak.




Button prompts: https://www.pcgamingwiki.com/wiki/Prince_of_Persia:_The_Two_Thrones#Button_prompts

Remapping your controller externally with XInput Plus won't change the in-game prompts, so you'll still see "Press R-Shoulder to wall run". If you reaaaally want you can edit a game file to tweak this. POPData.bf holds a lot of the text used for the game. The PCGamingWiki instructions say to search for the line "Input event names". Specifically you'll want to scroll until you find "Microsoft XInput-style controller". It's somewhat intuitive, e.g. you can see that IOD_2_61 is the "R-Shoulder" prompt, so you could swap that around with "R Trigger".

After this, continue scrolling for "Input event names - Long version for the tutorial", which also has a "Microsoft XInput-style controller" sub-section. And then "Input event names - Super short versions for Combo pages", same thing.

The tricky part of this editing is you can't change the size of the file, it has to be 22,437 bytes for the game to run. If you swap around the buttons names as they are, you should be ok. If you end up short of the length somehow, you could add a comment line with a semicolon and some spaces. One time I just put a line with "ffffffff" and that worked, heh.




Widesceen fix[ps2wide.net]

Unrelated to input, but I would also recommend adding this. The game does allow you to set widescreen resolutions, but the videos are stretched, and the FOV feels kinda low. You set the resolution in the pop3.ini file, this overrides the in-game setting.
Last edited by Chariblaze; Sep 11, 2020 @ 2:46pm
< >
Showing 1-4 of 4 comments
Per page: 1530 50