Controller Support

From PMDOWiki

PMDO supports gamepads for the major Nintendo, Playstation, and Xbox controllers. They all come with default button mappings that are best fit for their controllers, but can still be modified in the settings.

Supporting New Controllers

Unrecognized controllers will default to Xbox-style control schemes. If the labeling is incorrect, it is possible to add support for your controller by following these steps:

Run PMDO with your controller plugged in. In the logs (found in the LOG subfolder), search for a debug line that mentions your controller. For example:

[2023/03/04 22:14:21.947] Controller 0: (8BitDo Ultimate Controller), GUID: c82d0631, Mapping: 03000000c82d00000631000000007200,*,a:b0,b:b1,x:b2,y:b3,back:b6,guide:b10,start:b7,leftstick:b8,rightstick:b9,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,platform:Windows

Copy the GUID, and navigate to the Controls/Label subfolder in your PMDO installation. Create a new XML file with your guid as the name. Inside it, map each controller input to a button texture. All valid controller inputs are specified here. All valid button textures are special characters. Some existing XMLs can be used for reference:

  • 4c05c405.xml: Sony Playstation 4 Dualshock
  • 5e04ff02.xml: XBox One Controller
  • 7e050920.xml: Nintendo Switch Pro Controller

It is recommended to copy one of these and try it out in the Options -> GamePad menu. If you find yourself pressing a button and the game registering a different button, tweak the XML to fix that mapping. After all buttons you press match up with the button labels the game shows, only then should you move on to configuring controls!

Configuring controls should work as you normally expect: At the start, some commands are mapped to the wrong buttons. Cancel being mapped to X, and move hotkeys being out of order are common situations. Re-map these buttons until the controls and arrangement of hotkeys look intuitive.

Support for the controller should now be functional the next time the game is started up. If you want to request out-of-box support for the controller, send the xml file you created in Controls/Label, as well as the identically named file in CONFIG/GAMEPAD to a developer. They can add it to the defaults for the next version.